arch: fix disk cache | wait disk cache to finish before first refresh

This commit is contained in:
Vinicius Moreira
2019-09-12 17:49:23 -03:00
parent 5a8a5e6cac
commit b864f82710
7 changed files with 60 additions and 36 deletions

View File

@@ -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:

View File

@@ -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)