diff options
author | SIDDHANT DIXIT <siddhant.dixit23@gmail.com> | 2021-07-24 01:48:04 +0530 |
---|---|---|
committer | SIDDHANT DIXIT <siddhant.dixit23@gmail.com> | 2021-07-24 01:48:04 +0530 |
commit | aef4ba9bedb5fce4eea169c543664cb86707c71d (patch) | |
tree | 59b6f383a258b6e6b31eb69c0e1b668e90aafbdd /desktop | |
parent | 610b37413e950686b61abc0adb588d7e87ff9b36 (diff) | |
download | onionshare-aef4ba9bedb5fce4eea169c543664cb86707c71d.tar.gz onionshare-aef4ba9bedb5fce4eea169c543664cb86707c71d.zip |
Update __init__.py
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/src/onionshare/__init__.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/desktop/src/onionshare/__init__.py b/desktop/src/onionshare/__init__.py index b97ca0fc..9d8d8981 100644 --- a/desktop/src/onionshare/__init__.py +++ b/desktop/src/onionshare/__init__.py @@ -98,14 +98,12 @@ class Application(QtWidgets.QApplication): curr_settings.load() current_theme = curr_settings.get("theme") - if current_theme == 0: - return "dark" if self.is_dark_mode() else "light" - elif current_theme == 1: + if current_theme == 1: return "light" elif current_theme == 2: return "dark" else: - return "light" + return "dark" if self.is_dark_mode() else "light" def main(): """ |