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:
parent
9cc7a98838
commit
4665972076
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
from PyQt6 import QtCore, uic
|
from PyQt6 import QtCore, uic
|
||||||
from PyQt6.QtCore import QDateTime, QLocale
|
from PyQt6.QtCore import QDateTime, QLocale, Qt
|
||||||
from PyQt6.QtWidgets import (
|
from PyQt6.QtWidgets import (
|
||||||
QAbstractItemView,
|
QAbstractItemView,
|
||||||
QApplication,
|
QApplication,
|
||||||
|
@ -202,7 +202,7 @@ def populate_wifi(self):
|
||||||
|
|
||||||
def save_wifi_item(self, item):
|
def save_wifi_item(self, item):
|
||||||
db_item = WifiSettingModel.get(ssid=item.text(), profile=self.profile().id)
|
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()
|
db_item.save()
|
||||||
|
|
||||||
def save_profile_attr(self, attr, new_value):
|
def save_profile_attr(self, attr, new_value):
|
||||||
|
|
Loading…
Reference in a new issue