Skip to content

Commit 91259ce

Browse files
Apply appearance variable name
1 parent 1d95097 commit 91259ce

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎main.py‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,9 @@ def prefsSetStyle(self, sender):
102102
winAppearance = 'NSAppearanceNameVibrantDark'
103103
else:
104104
winAppearance = 'NSAppearanceNameVibrantLight'
105-
self.w._window.setAppearance_(NSAppearance.appearanceNamed_(winAppearance))
106-
self.prefsWindow._window.setAppearance_(winAppearance)
105+
appearance = NSAppearance.appearanceNamed_(winAppearance)
106+
self.w._window.setAppearance_(appearance)
107+
self.prefsWindow._window.setAppearance_(appearance)
107108

108109

109110
def prefsRestoreWarnings(self, sender):

0 commit comments

Comments
 (0)