mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
Remove redundant condition
This commit is contained in:
parent
bc58206a6a
commit
fd06714928
1 changed files with 0 additions and 2 deletions
|
@ -270,8 +270,6 @@ class ThemeManager:
|
||||||
if (
|
if (
|
||||||
aqt.mw.pm.get_widget_style() == AnkiStyles.NATIVE
|
aqt.mw.pm.get_widget_style() == AnkiStyles.NATIVE
|
||||||
and aqt.mw.pm.theme() == Theme.FOLLOW_SYSTEM
|
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
|
app.setStyle(QStyleFactory.create(self._default_style)) # type: ignore
|
||||||
self.default_palette.setColor(
|
self.default_palette.setColor(
|
||||||
|
|
Loading…
Reference in a new issue