provider: sort providers in alphabetical order (#11 codeberg)
This commit is contained in:
parent
73b6dd33c0
commit
c4563aa5ca
|
@ -17,7 +17,7 @@
|
|||
<default>false</default>
|
||||
</key>
|
||||
<key name="enabled-providers" type="as">
|
||||
<default>["baichat", "huggingchat", "openaigpt35turbo", "openaigpt4", "catgpt"]</default>
|
||||
<default>["baichat", "catgpt", "huggingchat", "openaigpt35turbo", "openaigpt4"]</default>
|
||||
</key>
|
||||
<key name="latest-provider" type="s">
|
||||
<default>'huggingchat'</default>
|
||||
|
|
|
@ -60,7 +60,7 @@ class BavarderApplication(Adw.Application):
|
|||
|
||||
self.clear_after_send = self.settings.get_boolean("clear-after-send")
|
||||
|
||||
self.enabled_providers = set(self.settings.get_strv("enabled-providers"))
|
||||
self.enabled_providers = sorted(set(self.settings.get_strv("enabled-providers")))
|
||||
self.latest_provider = self.settings.get_string("latest-provider")
|
||||
|
||||
# GStreamer playbin object and related setup
|
||||
|
|
Loading…
Reference in New Issue
Block a user