mirror of
https://github.com/LorenEteval/Furious.git
synced 2026-10-06 05:47:59 +03:00
Update XrayAssetViewerQListWidget.py
Signed-off-by: Loren Eteval <loren.eteval@proton.me>
This commit is contained in:
@@ -202,7 +202,16 @@ class XrayAssetViewerQListWidget(SupportThemeChangedCallback, AppQListWidget):
|
||||
# Do not delete
|
||||
pass
|
||||
|
||||
mbox = QuestionDeleteMBox(icon=AppQMessageBox.Icon.Question)
|
||||
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.isMulti = bool(len(indexes) > 1)
|
||||
mbox.possibleRemark = f'{self.item(indexes[0]).text()}'
|
||||
mbox.setText(mbox.customText())
|
||||
|
||||
Reference in New Issue
Block a user