1
0
Fork 0
mirror of synced 2024-06-26 18:20:50 +12:00

Lgndr: Update test get_boolean_choice to the arguments of its counterpart

This commit is contained in:
loathingKernel 2022-07-15 21:06:01 +03:00
parent 5c1ff81370
commit 654f734975

View file

@ -3,8 +3,11 @@ import logging
from PyQt5.QtWidgets import QMessageBox, QLabel
def get_boolean_choice(a0):
choice = QMessageBox.question(None, "Import DLCs?", a0)
def get_boolean_choice(prompt, default=True):
choice = QMessageBox.question(
None, "Import DLCs?", prompt,
defaultButton=QMessageBox.Yes if default else QMessageBox.No
)
return True if choice == QMessageBox.StandardButton.Yes else False