1
0
Fork 0
mirror of https://github.com/borgbase/vorta synced 2025-01-02 21:25:48 +00:00

Fix issue after Qt6 migration to save allowed Wifis (#1903)

This commit is contained in:
Manu 2024-01-20 10:26:06 +00:00 committed by GitHub
parent 9cc7a98838
commit 4665972076
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,5 +1,5 @@
from PyQt6 import QtCore, uic
from PyQt6.QtCore import QDateTime, QLocale
from PyQt6.QtCore import QDateTime, QLocale, Qt
from PyQt6.QtWidgets import (
QAbstractItemView,
QApplication,
@ -202,7 +202,7 @@ def populate_wifi(self):
def save_wifi_item(self, item):
db_item = WifiSettingModel.get(ssid=item.text(), profile=self.profile().id)
db_item.allowed = item.checkState() == 2
db_item.allowed = item.checkState() == Qt.CheckState.Checked
db_item.save()
def save_profile_attr(self, attr, new_value):