diff --git a/src/vorta/utils.py b/src/vorta/utils.py index 9c7a7568..4ad078a3 100644 --- a/src/vorta/utils.py +++ b/src/vorta/utils.py @@ -141,7 +141,11 @@ def get_sorted_wifis(profile): if wifis is not None: for wifi in wifis.values(): timestamp = wifi.get('LastConnected', None) - ssid = wifi['SSIDString'] + ssid = wifi.get('SSIDString', None) + + if ssid is None: + continue + db_wifi, created = WifiSettingModel.get_or_create( ssid=ssid, profile=profile.id, diff --git a/src/vorta/views/main_window.py b/src/vorta/views/main_window.py index 3028ff3f..117f39ac 100644 --- a/src/vorta/views/main_window.py +++ b/src/vorta/views/main_window.py @@ -31,6 +31,21 @@ class MainWindow(MainWindowBase, MainWindowUI): self.current_profile = BackupProfileModel.select().order_by('id').first() self.setWindowFlags(QtCore.Qt.WindowCloseButtonHint | QtCore.Qt.WindowMinimizeButtonHint) + # Temporary fix for QT Darkstyle dropdown issue. + # See https://github.com/ColinDuquesnoy/QDarkStyleSheet/issues/200 + self.setStyleSheet( + """ + QComboBox::item:checked { + height: 12px; + border: 1px solid #32414B; + margin-top: 0px; + margin-bottom: 0px; + padding: 4px; + padding-left: 0px; + } + """ + ) + # Load tab models self.repoTab = RepoTab(self.repoTabSlot) self.sourceTab = SourceTab(self.sourceTabSlot)