fix: dialog not going away after getting baton, and the accept/cancel too small
This commit is contained in:
@@ -123,7 +123,7 @@ class BatonRequestDialog(QDialog):
|
||||
button_layout.setSpacing(20)
|
||||
|
||||
self.accept_btn = QPushButton("✓ Accept")
|
||||
self.accept_btn.setMinimumHeight(40)
|
||||
self.accept_btn.setMinimumHeight(88)
|
||||
self.accept_btn.setStyleSheet(f"""
|
||||
QPushButton {{
|
||||
background-color: {BATON_OK_BG};
|
||||
@@ -144,7 +144,7 @@ class BatonRequestDialog(QDialog):
|
||||
button_layout.addWidget(self.accept_btn)
|
||||
|
||||
self.refuse_btn = QPushButton("✗ Refuse")
|
||||
self.refuse_btn.setMinimumHeight(40)
|
||||
self.refuse_btn.setMinimumHeight(88)
|
||||
self.refuse_btn.setStyleSheet(f"""
|
||||
QPushButton {{
|
||||
background-color: {BATON_DANGER_BG};
|
||||
@@ -304,7 +304,7 @@ class BatonPendingDialog(QDialog):
|
||||
|
||||
button_layout = QHBoxLayout()
|
||||
self.cancel_btn = QPushButton("✗ Cancel Request")
|
||||
self.cancel_btn.setMinimumHeight(40)
|
||||
self.cancel_btn.setMinimumHeight(88)
|
||||
self.cancel_btn.setStyleSheet(f"""
|
||||
QPushButton {{
|
||||
background-color: {BATON_DANGER_BG};
|
||||
|
||||
@@ -323,6 +323,7 @@ class StatusBar(QStatusBar):
|
||||
return
|
||||
|
||||
self._pgroup_dialog_shown_for_current_baton = True
|
||||
QTimer.singleShot(0, self.show_change_dialog) # Show after event loop returns
|
||||
self.show_change_dialog()
|
||||
|
||||
def _emit_incoming_baton_request(self, status: BatonStatus) -> None:
|
||||
|
||||
Reference in New Issue
Block a user