From 0312117cabff3deb71f3e3487ba20d549bbc411b Mon Sep 17 00:00:00 2001 From: Christian Buhtz Date: Thu, 1 Jan 2026 17:33:49 +0100 Subject: [PATCH] X --- CHANGES | 2 +- qt/icon.py | 15 +++++++++------ 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/CHANGES b/CHANGES index 0632acee3..3e0244635 100644 --- a/CHANGES +++ b/CHANGES @@ -51,7 +51,7 @@ Version 1.6.0-dev (development of upcoming release) * Removed: UI translation in Bosnian, Thai, and Occidental/Interlingue (#1914) * Removed: LICENSE file in favor of LICENSES directory and LICENSES.md file * Removed: SSH Cipher configuration in Manage profiles dialog (#2143) -* Fixed: Crash in Compare snapshots dialog (aka Snapshots dialog) whhen comparing/diff two backups (#2327 Michael Neese @madic-creates) +* Fixed: Crash in Compare snapshots dialog (aka Snapshots dialog) when comparing/diff two backups (#2327 Michael Neese @madic-creates) * Fixed: Enforce UTF-8 encoding in takesnapshot.log and some other files (#2298) * Fixed: Attribute error about missing 'cbCopyUnsafeLinks' (#2279) * Fixed: Use LC_ALL instead of LC_TIME to set the locale diff --git a/qt/icon.py b/qt/icon.py index a87dfe5db..07cb0cb47 100644 --- a/qt/icon.py +++ b/qt/icon.py @@ -25,7 +25,7 @@ 'adwaita', 'adwaita-dark', 'yaru', - 'oxygen' + 'oxygen', ) ICON_NAME_TO_CHECK = 'document-save' @@ -37,8 +37,9 @@ # (not fully compliant to the freedesktop.org spec) # and is not recommended as main theme (it is meant as fallback only). if not QIcon.fromTheme(ICON_NAME_TO_CHECK).isNull(): - logger.debug(f'Icon "{ICON_NAME_TO_CHECK}" found in ' - 'installed theme: {QIcon.themeName()}') + logger.debug( + f'Icon "{ICON_NAME_TO_CHECK}" found in theme: {QIcon.themeName()}' + ) break # try next theme (activate it)... @@ -47,9 +48,11 @@ f'(activated as "{QIcon.themeName()}")') if QIcon.fromTheme(ICON_NAME_TO_CHECK).isNull(): - logger.error('No supported theme installed (missing icons). ' - 'Please consult the project web site for instructions ' - 'how to fix this.') + logger.error( + f'Icon theme missing or not supported. Icon "{ICON_NAME_TO_CHECK}" ' + 'not found. An icon theme should be installed. ' + 'For example: tango-icon-theme, oxygen-icon-theme' + ) # Dev note: Please prefer choosing icons from the freedesktop.org spec # to improve the chance that the icon is available and