Disabel error bell

This commit is contained in:
Bernd Schoolmann 2024-05-03 21:10:14 +02:00
parent 8a8a2c10a6
commit 70f6a47fd5
No known key found for this signature in database
3 changed files with 9 additions and 1 deletions

View File

@ -45,5 +45,8 @@ class GoldwardenLoginApp(Adw.Application):
goldwarden.login_with_password(email, "")
if __name__ == "__main__":
settings = Gtk.Settings.get_default()
settings.set_property("gtk-error-bell", False)
app = GoldwardenLoginApp(application_id="com.quexten.Goldwarden.login")
app.run(sys.argv)

View File

@ -108,6 +108,9 @@ class GoldwardenQuickAccessApp(Adw.Application):
self.update()
if __name__ == "__main__":
settings = Gtk.Settings.get_default()
settings.set_property("gtk-error-bell", False)
token = sys.stdin.readline()
goldwarden.create_authenticated_connection(token)
app = GoldwardenQuickAccessApp(application_id="com.quexten.Goldwarden.quickaccess")

View File

@ -139,7 +139,9 @@ class GoldwardenSettingsApp(Adw.Application):
dialog.set_visible(True)
if __name__ == "__main__":
# read from stdin
settings = Gtk.Settings.get_default()
settings.set_property("gtk-error-bell", False)
token = sys.stdin.readline().strip()
goldwarden.create_authenticated_connection(None)