Reformat with ruff format
This commit is contained in:
@@ -46,7 +46,6 @@ TRUST_DATA = {
|
||||
|
||||
class KeyDialog(GajimAppWindow):
|
||||
def __init__(self, account: str, jid: JID, transient: Gtk.Window) -> None:
|
||||
|
||||
GajimAppWindow.__init__(
|
||||
self,
|
||||
name="PGPKeyDialog",
|
||||
@@ -201,7 +200,6 @@ class TrustPopver(Gtk.Popover):
|
||||
|
||||
|
||||
class MenuOption(Gtk.ListBoxRow):
|
||||
|
||||
type_: Trust | None
|
||||
icon: str
|
||||
label: str
|
||||
@@ -223,7 +221,6 @@ class MenuOption(Gtk.ListBoxRow):
|
||||
|
||||
|
||||
class VerifiedOption(MenuOption):
|
||||
|
||||
type_ = Trust.VERIFIED
|
||||
icon = "security-high-symbolic"
|
||||
label = _("Verified")
|
||||
@@ -234,7 +231,6 @@ class VerifiedOption(MenuOption):
|
||||
|
||||
|
||||
class NotTrustedOption(MenuOption):
|
||||
|
||||
type_ = Trust.NOT_TRUSTED
|
||||
icon = "dialog-error-symbolic"
|
||||
label = _("Not Trusted")
|
||||
@@ -245,7 +241,6 @@ class NotTrustedOption(MenuOption):
|
||||
|
||||
|
||||
class DeleteOption(MenuOption):
|
||||
|
||||
type_ = None
|
||||
icon = "user-trash-symbolic"
|
||||
label = _("Delete")
|
||||
|
||||
@@ -103,7 +103,6 @@ class KeyWizard(Gtk.Assistant):
|
||||
|
||||
|
||||
class WelcomePage(Gtk.Box):
|
||||
|
||||
type_ = Gtk.AssistantPageType.INTRO
|
||||
title = _("Welcome")
|
||||
complete = True
|
||||
@@ -118,7 +117,6 @@ class WelcomePage(Gtk.Box):
|
||||
|
||||
|
||||
class RequestPage(Gtk.Box):
|
||||
|
||||
type_ = Gtk.AssistantPageType.INTRO
|
||||
title = _("Request OpenPGP Key")
|
||||
complete = False
|
||||
@@ -150,7 +148,6 @@ class RequestPage(Gtk.Box):
|
||||
|
||||
|
||||
class NewKeyPage(RequestPage):
|
||||
|
||||
type_ = Gtk.AssistantPageType.PROGRESS
|
||||
title = _("Generating new Key")
|
||||
complete = False
|
||||
@@ -203,7 +200,6 @@ class NewKeyPage(RequestPage):
|
||||
|
||||
|
||||
class SuccessfulPage(Gtk.Box):
|
||||
|
||||
type_ = Gtk.AssistantPageType.SUMMARY
|
||||
title = _("Setup successful")
|
||||
complete = True
|
||||
@@ -225,7 +221,6 @@ class SuccessfulPage(Gtk.Box):
|
||||
|
||||
|
||||
class ErrorPage(Gtk.Box):
|
||||
|
||||
type_ = Gtk.AssistantPageType.SUMMARY
|
||||
title = _("Setup failed")
|
||||
complete = True
|
||||
|
||||
Reference in New Issue
Block a user