From 7c73d5d88dfb1c3a92109714e1b8315a09e8f223 Mon Sep 17 00:00:00 2001 From: javad Date: Mon, 20 May 2024 22:45:29 +0200 Subject: [PATCH] (fix) issue with gnome 46 --- Changelog.txt | 5 ++++- negar_gui/constants.py | 2 +- negar_gui/main.py | 5 ++++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/Changelog.txt b/Changelog.txt index 9940fa3..6eeb430 100644 --- a/Changelog.txt +++ b/Changelog.txt @@ -1,5 +1,8 @@ +2024-05-20 -- v0.8.4 +-- Fixed issue with the latest update of gnome 46 + 2023-08-18 -- v0.8.3 --- Synchronize the scrolls of input/ouput boxes. +-- Synchronize the scrolls of input/output boxes. 2023-08-17 -- v0.8.2 -- `txt` as a default extension for saving/opening file. diff --git a/negar_gui/constants.py b/negar_gui/constants.py index d6ffb8c..d572240 100644 --- a/negar_gui/constants.py +++ b/negar_gui/constants.py @@ -1,7 +1,7 @@ import platform from pathlib import Path -__version__ = "0.8.3" +__version__ = "0.8.4" APPDATA = "AppData/Roaming/" if platform.system() == "Windows" else "." SETTING_FILE = Path.home() / f"{APPDATA}negar-gui/settings.toml" diff --git a/negar_gui/main.py b/negar_gui/main.py index 96a7070..70f4865 100644 --- a/negar_gui/main.py +++ b/negar_gui/main.py @@ -774,7 +774,10 @@ def main(args=docopt(__doc__)): sys.exit() global MAIN_WINDOW - qdarktheme.enable_hi_dpi() + try: + qdarktheme.enable_hi_dpi() + except AttributeError: + qdarktheme.setup_theme = lambda x, **kw: () app = QApplication(sys.argv) qdarktheme.setup_theme("dark") MAIN_WINDOW = MyWindow()