fix(ui): hide CUPS PPD uncorrected passthrough option on Windows (v0.1.7) #49

Merged
gronod merged 1 commits from fix/issue-48-hide-cups-ppd-windows into development 2026-08-24 23:34:43 +01:00
4 changed files with 9 additions and 3 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"name": "iccery", "name": "iccery",
"private": true, "private": true,
"version": "0.1.6", "version": "0.1.7",
"type": "module", "type": "module",
"scripts": { "scripts": {
"tauri": "tauri" "tauri": "tauri"
+1 -1
View File
@@ -1,6 +1,6 @@
[package] [package]
name = "iccery" name = "iccery"
version = "0.1.6" version = "0.1.7"
description = "A Tauri App" description = "A Tauri App"
authors = ["you"] authors = ["you"]
edition = "2021" edition = "2021"
+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"$schema": "https://schema.tauri.app/config/2", "$schema": "https://schema.tauri.app/config/2",
"productName": "ICCery", "productName": "ICCery",
"version": "0.1.6", "version": "0.1.7",
"identifier": "com.gronod.iccery", "identifier": "com.gronod.iccery",
"build": { "build": {
"frontendDist": "../src" "frontendDist": "../src"
+6
View File
@@ -42,12 +42,18 @@ export function initPrinttarg() {
const btnOrientLandscape = document.getElementById("btnOrientLandscape"); const btnOrientLandscape = document.getElementById("btnOrientLandscape");
const printerStatusBadge = document.getElementById("printerStatusBadge"); const printerStatusBadge = document.getElementById("printerStatusBadge");
const chkPpdFallback = document.getElementById("chkPpdFallback"); const chkPpdFallback = document.getElementById("chkPpdFallback");
const cupsOptionsGroup = document.getElementById("cupsOptionsGroup");
const btnPrintAll = document.getElementById("btnPrintAll"); const btnPrintAll = document.getElementById("btnPrintAll");
const btnAdvanceToStage3 = document.getElementById("btnAdvanceToStage3"); const btnAdvanceToStage3 = document.getElementById("btnAdvanceToStage3");
const printNotification = document.getElementById("printNotification"); const printNotification = document.getElementById("printNotification");
const printNotificationIcon = document.getElementById("printNotificationIcon"); const printNotificationIcon = document.getElementById("printNotificationIcon");
const printNotificationText = document.getElementById("printNotificationText"); const printNotificationText = document.getElementById("printNotificationText");
const isWindows = navigator.userAgent.includes("Windows") || (navigator.userAgentData && navigator.userAgentData.platform === "Windows");
if (isWindows && cupsOptionsGroup) {
cupsOptionsGroup.classList.add("hidden");
}
let selectedOrientation = "portrait"; let selectedOrientation = "portrait";
// Orientation toggle buttons // Orientation toggle buttons