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
1 changed files with 2 additions and 2 deletions

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 @@ class ScheduleTab(ScheduleBase, ScheduleUI, BackupProfileMixin):
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):