From aef4ba9bedb5fce4eea169c543664cb86707c71d Mon Sep 17 00:00:00 2001 From: SIDDHANT DIXIT Date: Sat, 24 Jul 2021 01:48:04 +0530 Subject: [PATCH] Update __init__.py --- desktop/src/onionshare/__init__.py | 6 ++---- 1 file 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(): """