mirror of
https://github.com/borgbase/vorta
synced 2025-02-21 22:06:57 +00:00
Temporary fix for dark style. Fixes #326
* Ignore Wifis with missing network name on macOS. Fixes #429
This commit is contained in:
parent
e82e35363f
commit
08598cb45e
2 changed files with 20 additions and 1 deletions
|
@ -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,
|
||||
|
|
|
@ -31,6 +31,21 @@ def __init__(self, parent=None):
|
|||
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)
|
||||
|
|
Loading…
Reference in a new issue