From 5bbfdffb10d350e2c7d8f47201f4b0fbddbbb3c9 Mon Sep 17 00:00:00 2001 From: 0xMRTT <0xMRTT@proton.me> Date: Sun, 7 May 2023 15:30:46 +0200 Subject: [PATCH] provider: disable about --- src/provider/bard.py | 10 +++++----- src/provider/base.py | 10 +++++----- src/provider/huggingface.py | 10 +++++----- src/provider/openai.py | 10 +++++----- 4 files changed, 20 insertions(+), 20 deletions(-) diff --git a/src/provider/bard.py b/src/provider/bard.py index daa04a9..cba0187 100644 --- a/src/provider/bard.py +++ b/src/provider/bard.py @@ -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) diff --git a/src/provider/base.py b/src/provider/base.py index d541e58..bb19aee 100644 --- a/src/provider/base.py +++ b/src/provider/base.py @@ -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) diff --git a/src/provider/huggingface.py b/src/provider/huggingface.py index 3fb0e40..008cff3 100644 --- a/src/provider/huggingface.py +++ b/src/provider/huggingface.py @@ -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() diff --git a/src/provider/openai.py b/src/provider/openai.py index bf8361a..b07b539 100644 --- a/src/provider/openai.py +++ b/src/provider/openai.py @@ -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)