provider: disable about
This commit is contained in:
parent
9c1ae1f105
commit
5bbfdffb10
4 changed files with 20 additions and 20 deletions
|
@ -41,11 +41,11 @@ class BardProvider(BavarderProvider):
|
|||
self.expander = Adw.ExpanderRow()
|
||||
self.expander.props.title = self.name
|
||||
|
||||
about_button = Gtk.Button()
|
||||
about_button.set_label("About")
|
||||
about_button.connect("clicked", self.about)
|
||||
about_button.set_valign(Gtk.Align.CENTER)
|
||||
self.expander.add_action(about_button) # TODO: in Adw 1.4, use add_suffix
|
||||
# about_button = Gtk.Button()
|
||||
# about_button.set_label("About")
|
||||
# about_button.connect("clicked", self.about)
|
||||
# about_button.set_valign(Gtk.Align.CENTER)
|
||||
# self.expander.add_action(about_button) # TODO: in Adw 1.4, use add_suffix
|
||||
|
||||
enabled = Gtk.Switch()
|
||||
enabled.set_active(self.slug in self.app.enabled_providers)
|
||||
|
|
|
@ -69,11 +69,11 @@ class BavarderProvider:
|
|||
self.expander = Adw.ExpanderRow()
|
||||
self.expander.props.title = self.name
|
||||
|
||||
about_button = Gtk.Button()
|
||||
about_button.set_label("About")
|
||||
about_button.connect("clicked", self.about)
|
||||
about_button.set_valign(Gtk.Align.CENTER)
|
||||
self.expander.add_action(about_button) # TODO: in Adw 1.4, use add_suffix
|
||||
# about_button = Gtk.Button()
|
||||
# about_button.set_label("About")
|
||||
# about_button.connect("clicked", self.about)
|
||||
# about_button.set_valign(Gtk.Align.CENTER)
|
||||
# self.expander.add_action(about_button) # TODO: in Adw 1.4, use add_suffix
|
||||
|
||||
enabled = Gtk.Switch()
|
||||
enabled.set_active(self.slug in self.app.enabled_providers)
|
||||
|
|
|
@ -60,11 +60,11 @@ class BaseHFProvider(BavarderProvider):
|
|||
self.expander = Adw.ExpanderRow()
|
||||
self.expander.props.title = self.name
|
||||
|
||||
about_button = Gtk.Button()
|
||||
about_button.set_label("About")
|
||||
about_button.connect("clicked", self.about)
|
||||
about_button.set_valign(Gtk.Align.CENTER)
|
||||
self.expander.add_action(about_button) # TODO: in Adw 1.4, use add_suffix
|
||||
# about_button = Gtk.Button()
|
||||
# about_button.set_label("About")
|
||||
# about_button.connect("clicked", self.about)
|
||||
# about_button.set_valign(Gtk.Align.CENTER)
|
||||
# self.expander.add_action(about_button) # TODO: in Adw 1.4, use add_suffix
|
||||
|
||||
|
||||
enabled = Gtk.Switch()
|
||||
|
|
|
@ -71,11 +71,11 @@ class BaseOpenAIProvider(BavarderProvider):
|
|||
self.expander = Adw.ExpanderRow()
|
||||
self.expander.props.title = self.name
|
||||
|
||||
about_button = Gtk.Button()
|
||||
about_button.set_label("About")
|
||||
about_button.connect("clicked", self.about)
|
||||
about_button.set_valign(Gtk.Align.CENTER)
|
||||
self.expander.add_action(about_button) # TODO: in Adw 1.4, use add_suffix
|
||||
# about_button = Gtk.Button()
|
||||
# about_button.set_label("About")
|
||||
# about_button.connect("clicked", self.about)
|
||||
# about_button.set_valign(Gtk.Align.CENTER)
|
||||
# self.expander.add_action(about_button) # TODO: in Adw 1.4, use add_suffix
|
||||
|
||||
enabled = Gtk.Switch()
|
||||
enabled.set_active(self.slug in self.app.enabled_providers)
|
||||
|
|
Loading…
Reference in a new issue