Remove redundant condition

This commit is contained in:
Matthias Metelka 2023-01-16 10:04:51 +01:00
parent bc58206a6a
commit fd06714928

View file

@ -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(