mirror of
https://github.com/LorenEteval/Furious.git
synced 2026-09-30 02:48:11 +03:00
Fix modality of user subs window on macOS
Signed-off-by: Loren Eteval <loren.eteval@proton.me>
This commit is contained in:
@@ -163,9 +163,12 @@ class UserSubsQTableWidget(QTranslatable, AppQTableWidget):
|
||||
# Do not delete
|
||||
pass
|
||||
|
||||
mbox = QuestionDeleteMBox(icon=AppQMessageBox.Icon.Question)
|
||||
mbox = QuestionDeleteMBox(
|
||||
icon=AppQMessageBox.Icon.Question, parent=self.parent()
|
||||
)
|
||||
mbox.isMulti = bool(len(indexes) > 1)
|
||||
mbox.possibleRemark = self.item(indexes[0], 0).text()
|
||||
mbox.setWindowModality(QtCore.Qt.WindowModality.WindowModal)
|
||||
mbox.setText(mbox.customText())
|
||||
mbox.finished.connect(functools.partial(handleResultCode, indexes))
|
||||
|
||||
|
||||
@@ -97,10 +97,11 @@ class UserSubsWindow(AppQMainWindow):
|
||||
|
||||
super().__init__(*args, **kwargs)
|
||||
|
||||
self.setWindowModality(QtCore.Qt.WindowModality.WindowModal)
|
||||
self.setWindowTitle(_('Edit Subscription'))
|
||||
|
||||
self.userSubsQTableWidget = UserSubsQTableWidget(deleteUniqueCallback=callback)
|
||||
self.userSubsQTableWidget = UserSubsQTableWidget(
|
||||
deleteUniqueCallback=callback, parent=self
|
||||
)
|
||||
|
||||
self.userSubsTab = AppQTabWidget(self)
|
||||
self.userSubsTab.addTab(self.userSubsQTableWidget, _('Subscription List'))
|
||||
@@ -152,6 +153,7 @@ class UserSubsWindow(AppQMainWindow):
|
||||
pass
|
||||
|
||||
addSubsDialog = AddSubsDialog(parent=self)
|
||||
addSubsDialog.setWindowModality(QtCore.Qt.WindowModality.WindowModal)
|
||||
addSubsDialog.finished.connect(
|
||||
functools.partial(handleResultCode, addSubsDialog)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user