mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2025-01-07 11:20:47 +03:00
fix spec added patch
This commit is contained in:
parent
ed2a2f66f1
commit
312c332744
@ -101,7 +101,7 @@ class SystemTrayIcon(QtGui.QSystemTrayIcon):
|
|||||||
if is_protected:
|
if is_protected:
|
||||||
#hide icon to avoid double clicks and glitches.
|
#hide icon to avoid double clicks and glitches.
|
||||||
self.hide()
|
self.hide()
|
||||||
password, ok = QtGui.QInputDialog.getText(None, "Password", "Password:", QtGui.QLineEdit.Password)
|
password, ok = QtGui.QInputDialog.getText(self.myapp, "Password", "Password:", QtGui.QLineEdit.Password)
|
||||||
self.show()
|
self.show()
|
||||||
if ok:
|
if ok:
|
||||||
#do soemthing
|
#do soemthing
|
||||||
@ -114,10 +114,11 @@ class SystemTrayIcon(QtGui.QSystemTrayIcon):
|
|||||||
#self.myapp.raise_()
|
#self.myapp.raise_()
|
||||||
else:
|
else:
|
||||||
#fail for some reasons
|
#fail for some reasons
|
||||||
|
"No Yubikey NEO found. Please plugin your Yubikey NEO in one of your USB port", QtGui.QMessageBox.Ok)
|
||||||
QtGui.QMessageBox.information(QtGui.QWidget(), self.tr("Warning!"), self.tr("Wrong password or applet is corrupted"))
|
QtGui.QMessageBox.information(QtGui.QWidget(), self.tr("Warning!"), self.tr("Wrong password or applet is corrupted"))
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
QtGui.QMessageBox.information(QtGui.QWidget(), self.tr("Warning!"), self.tr("No password was provided. A password is required to access the Yubico Authenticator."))
|
QtGui.QMessageBox.information(QtGui.QWidget(), self.tr("Warning!"), self.tr("A password is required to access the Yubico Authenticator."))
|
||||||
return
|
return
|
||||||
#the neo is not protected go on with standard operations!
|
#the neo is not protected go on with standard operations!
|
||||||
else:
|
else:
|
||||||
|
@ -175,11 +175,18 @@ shutil.copy2('yubioath-128.png', 'dist/Yubico Authenticator/yubioath-128.png')
|
|||||||
|
|
||||||
if OSX:
|
if OSX:
|
||||||
shutil.copy2('yubioath-128.png', 'dist/Yubico Authenticator.app/Contents/MacOS/yubioath-128.png')
|
shutil.copy2('yubioath-128.png', 'dist/Yubico Authenticator.app/Contents/MacOS/yubioath-128.png')
|
||||||
|
shutil.copy2('yubioath-128.png', 'dist/Yubico Authenticator.app/Contents/Resources/yubioath-128.png')
|
||||||
|
shutil.copy2('yubioath-128.icns', 'dist/Yubico Authenticator.app/Contents/MacOS/yubioath-128.icns')
|
||||||
|
shutil.copy2('yubioath-128.icns', 'dist/Yubico Authenticator.app/Contents/Resources/yubioath-128.icns')
|
||||||
|
|
||||||
shutil.copy2('yubico.ico', 'dist/Yubico Authenticator.app/Contents/MacOS/yubico.ico')
|
shutil.copy2('yubico.ico', 'dist/Yubico Authenticator.app/Contents/MacOS/yubico.ico')
|
||||||
shutil.copy2('yubico.png', 'dist/Yubico Authenticator.app/Contents/MacOS/yubico.png')
|
shutil.copy2('yubico.png', 'dist/Yubico Authenticator.app/Contents/MacOS/yubico.png')
|
||||||
shutil.copy2('yubico-logo81.png', 'dist/Yubico Authenticator.app/Contents/MacOS/yubico-logo81.png')
|
shutil.copy2('yubico-logo81.png', 'dist/Yubico Authenticator.app/Contents/MacOS/yubico-logo81.png')
|
||||||
shutil.copy2('yubioath-128.icns', 'dist/Yubico Authenticator.app/Contents/MacOS/yubioath-128.icns')
|
|
||||||
shutil.copy2('yubioath-48.icns', 'dist/Yubico Authenticator.app/Contents/Resources/yubioath-48.png')
|
shutil.copy2('yubioath-48.icns', 'dist/Yubico Authenticator.app/Contents/MacOS/yubioath-48.icns')
|
||||||
|
shutil.copy2('yubioath-48.icns', 'dist/Yubico Authenticator.app/Contents/Resources/yubioath-48.icns')
|
||||||
|
shutil.copy2('yubioath-48.png', 'dist/Yubico Authenticator.app/Contents/MacOS/yubioath-48.png')
|
||||||
|
shutil.copy2('yubioath-48.png', 'dist/Yubico Authenticator.app/Contents/Resources/yubioath-48.png')
|
||||||
|
|
||||||
|
|
||||||
#######################
|
#######################
|
||||||
|
Loading…
Reference in New Issue
Block a user