Skip to content

Commit

Permalink
Remain modality of user subs delete mbox on Windows
Browse files Browse the repository at this point in the history
Signed-off-by: Loren Eteval <[email protected]>
  • Loading branch information
LorenEteval committed May 13, 2024
1 parent fe7f9eb commit a8e9303
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions Furious/Widget/UserSubsQTableWidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,12 +163,19 @@ def handleResultCode(_indexes, code):
# Do not delete
pass

mbox = QuestionDeleteMBox(
icon=AppQMessageBox.Icon.Question, parent=self.parent()
)
if PLATFORM == 'Windows':
# Windows
mbox = QuestionDeleteMBox(icon=AppQMessageBox.Icon.Question)
else:
# macOS & linux
mbox = QuestionDeleteMBox(
icon=AppQMessageBox.Icon.Question, parent=self.parent()
)
mbox.setWindowModality(QtCore.Qt.WindowModality.WindowModal)

mbox = QuestionDeleteMBox(icon=AppQMessageBox.Icon.Question)
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))

Expand Down

0 comments on commit a8e9303

Please sign in to comment.