mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 22:02:15 +01:00
show event won't be skipped
This commit is contained in:
parent
3669436aa1
commit
62a7bdfca8
1 changed files with 0 additions and 8 deletions
|
|
@ -30,9 +30,6 @@ class PasswordDialog(QtWidgets.QDialog):
|
|||
password_input = QtWidgets.QLineEdit(password_widget)
|
||||
password_input.setEchoMode(QtWidgets.QLineEdit.Password)
|
||||
|
||||
current_dir = os.path.join(
|
||||
os.path.dirname(os.path.abspath(__file__))
|
||||
)
|
||||
show_password_icon_path = get_resource("images", "eye.png")
|
||||
show_password_icon = QtGui.QIcon(show_password_icon_path)
|
||||
show_password_btn = QtWidgets.QPushButton(password_widget)
|
||||
|
|
@ -88,11 +85,6 @@ class PasswordDialog(QtWidgets.QDialog):
|
|||
return event.accept()
|
||||
super(PasswordDialog, self).keyPressEvent(event)
|
||||
|
||||
def showEvent(self, event):
|
||||
super(PasswordDialog, self).showEvent(event)
|
||||
if self.result():
|
||||
self.close()
|
||||
|
||||
def closeEvent(self, event):
|
||||
self.finished.emit(self.result())
|
||||
super(PasswordDialog, self).closeEvent(event)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue