From fd067149281a30b15c19bcc28e5c6a652e49b90b Mon Sep 17 00:00:00 2001 From: Matthias Metelka <62722460+kleinerpirat@users.noreply.github.com> Date: Mon, 16 Jan 2023 10:04:51 +0100 Subject: [PATCH] Remove redundant condition --- qt/aqt/theme.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/qt/aqt/theme.py b/qt/aqt/theme.py index 41e23d76c..86c519c08 100644 --- a/qt/aqt/theme.py +++ b/qt/aqt/theme.py @@ -270,8 +270,6 @@ class ThemeManager: if ( aqt.mw.pm.get_widget_style() == AnkiStyles.NATIVE and aqt.mw.pm.theme() == Theme.FOLLOW_SYSTEM - or is_mac - and not (qtmajor == 5 or aqt.mw.pm.get_widget_style() == AnkiStyles.ANKI) ): app.setStyle(QStyleFactory.create(self._default_style)) # type: ignore self.default_palette.setColor(