Fix: Windows-Titelleistensymbol durch AppUserModelID und setWindowIcon korrekt gesetzt (v1.6.1)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-25 15:02:37 +02:00
parent 394cbcf4be
commit 16de979524
6 changed files with 17 additions and 5 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
<!-- Paket-Definition (ersetzt Product in v4) --> <!-- Paket-Definition (ersetzt Product in v4) -->
<Package <Package
Name="DocuMentor" Name="DocuMentor"
Version="1.6.0" Version="1.6.1"
Manufacturer="Vitali Graf / Software- und Datenbankentwicklung" Manufacturer="Vitali Graf / Software- und Datenbankentwicklung"
UpgradeCode="F498B66C-726D-44AA-95F4-CB4FBDCEF26E" UpgradeCode="F498B66C-726D-44AA-95F4-CB4FBDCEF26E"
Language="1031" Language="1031"
+1 -1
View File
@@ -253,5 +253,5 @@ HINWEISE
================================================================================ ================================================================================
Stand: April 2026 Stand: April 2026
Erstellt für: DocuMentor v1.6.0 Erstellt für: DocuMentor v1.6.1
================================================================================ ================================================================================
+1 -1
View File
@@ -10,7 +10,7 @@
; Build-Befehl: iscc installer.iss ; Build-Befehl: iscc installer.iss
#define MyAppName "DocuMentor" #define MyAppName "DocuMentor"
#define MyAppVersion "1.6.0" #define MyAppVersion "1.6.1"
#define MyAppPublisher "Ihr Name/Organisation" #define MyAppPublisher "Ihr Name/Organisation"
#define MyAppURL "https://github.com/yourusername/xsl-validator" #define MyAppURL "https://github.com/yourusername/xsl-validator"
#define MyAppExeName "DocuMentor.exe" #define MyAppExeName "DocuMentor.exe"
+1 -1
View File
@@ -1,6 +1,6 @@
[project] [project]
name = "DocuMentor" name = "DocuMentor"
version = "1.6.0" version = "1.6.1"
description = "Professionelle XSL-Transformations-Verwaltung und PDF-Generierung" description = "Professionelle XSL-Transformations-Verwaltung und PDF-Generierung"
readme = "README.md" readme = "README.md"
license = {text = "MIT"} license = {text = "MIT"}
+12
View File
@@ -1,6 +1,8 @@
import sys import sys
import logging import logging
from pathlib import Path
from PySide6.QtGui import QIcon
from PySide6.QtWidgets import QApplication from PySide6.QtWidgets import QApplication
from ui.MainWindow import MainWindow from ui.MainWindow import MainWindow
@@ -80,9 +82,19 @@ def main():
# Alte Log-Dateien aufräumen (erst nach Logger-Init) # Alte Log-Dateien aufräumen (erst nach Logger-Init)
cleanup_old_logs(log_dir, max_age_hours=24) cleanup_old_logs(log_dir, max_age_hours=24)
# Unter Windows: AppUserModelID setzen, damit die Taskleiste das richtige Symbol zeigt
if sys.platform == "win32":
import ctypes
ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID("de.vitaligraf.documentor")
# QApplication-Instanz erstellen # QApplication-Instanz erstellen
app = QApplication(sys.argv) app = QApplication(sys.argv)
# App-Symbol setzen
icon_path = Path(__file__).parent.parent / "resources" / "icon.ico"
if icon_path.exists():
app.setWindowIcon(QIcon(str(icon_path)))
# Hauptfenster erstellen # Hauptfenster erstellen
window = MainWindow() window = MainWindow()
Generated
+1 -1
View File
@@ -34,7 +34,7 @@ wheels = [
[[package]] [[package]]
name = "documentor" name = "documentor"
version = "1.6.0" version = "1.6.1"
source = { virtual = "." } source = { virtual = "." }
dependencies = [ dependencies = [
{ name = "connectorx" }, { name = "connectorx" },