provider: disable about

This commit is contained in:
0xMRTT 2023-05-07 15:30:46 +02:00
parent 9c1ae1f105
commit 5bbfdffb10
Signed by: 0xMRTT
GPG Key ID: 19C1449A774028BD
4 changed files with 20 additions and 20 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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()

View File

@ -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)