fix: dialog not going away after getting baton, and the accept/cancel too small

This commit is contained in:
2026-08-20 19:54:50 +02:00
parent 3b2fa597a6
commit 1af38fcbd3
2 changed files with 4 additions and 3 deletions
+3 -3
View File
@@ -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};
+1
View File
@@ -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: