mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
buttons in clockify credentials widget has same width
This commit is contained in:
parent
fbfb85c95d
commit
afb77da237
1 changed files with 11 additions and 0 deletions
|
|
@ -182,6 +182,17 @@ class ClockifySettings(QtWidgets.QWidget):
|
|||
"Entered invalid API key"
|
||||
)
|
||||
|
||||
def showEvent(self, event):
|
||||
super(ClockifySettings, self).showEvent(event)
|
||||
|
||||
# Make btns same width
|
||||
max_width = max(
|
||||
self.btn_ok.sizeHint().width(),
|
||||
self.btn_cancel.sizeHint().width()
|
||||
)
|
||||
self.btn_ok.setMinimumWidth(max_width)
|
||||
self.btn_cancel.setMinimumWidth(max_width)
|
||||
|
||||
def closeEvent(self, event):
|
||||
if self.optional is True:
|
||||
event.ignore()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue