mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 02:24:16 +02:00
arch: fix disk cache | wait disk cache to finish before first refresh
This commit is contained in:
@@ -13,10 +13,8 @@ class ConfirmationDialog(QMessageBox):
|
||||
self.setWindowTitle(title)
|
||||
self.setStyleSheet('QLabel { margin-right: 25px; }')
|
||||
self.bt_yes = self.addButton(locale_keys['popup.button.yes'] if not confirmation_label else confirmation_label.capitalize(), QMessageBox.YesRole)
|
||||
self.bt_yes.setStyleSheet('background: green; color: white; font-weight: bold')
|
||||
|
||||
bt_no = self.addButton(locale_keys['popup.button.no'] if not deny_label else deny_label.capitalize(), QMessageBox.NoRole)
|
||||
bt_no.setStyleSheet('background: red; color: white; font-weight: bold')
|
||||
self.addButton(locale_keys['popup.button.no'] if not deny_label else deny_label.capitalize(), QMessageBox.NoRole)
|
||||
|
||||
if body:
|
||||
if not components:
|
||||
|
||||
@@ -42,10 +42,8 @@ def ask_confirmation(title: str, body: str, locale_keys: dict, icon: QIcon = QIc
|
||||
diag.layout().addWidget(wbody, 0, 1)
|
||||
|
||||
bt_yes = diag.addButton(locale_keys['popup.button.yes'], QMessageBox.YesRole)
|
||||
bt_yes.setStyleSheet('background: green; color: white; font-weight: bold')
|
||||
|
||||
bt_no = diag.addButton(locale_keys['popup.button.no'], QMessageBox.NoRole)
|
||||
bt_no.setStyleSheet('background: red; color: white; font-weight: bold')
|
||||
diag.addButton(locale_keys['popup.button.no'], QMessageBox.NoRole)
|
||||
|
||||
if icon:
|
||||
diag.setWindowIcon(icon)
|
||||
|
||||
Reference in New Issue
Block a user