Fixed reconnection dialog not selecting 'use local instance'

This commit is contained in:
jeffser
2024-10-14 15:59:05 -06:00
parent c9cf2bfefc
commit 27126736a4
2 changed files with 5 additions and 2 deletions

View File

@@ -631,7 +631,7 @@ Generate a title following these rules:
if self.ollama_instance.remote:
options = {
_("Close Alpaca"): {"callback": lambda *_: self.get_application().quit(), "appearance": "destructive"},
_("Use Local Instance"): {"callback": lambda *_: window.remote_connection_switch.set_active(False)},
_("Use Local Instance"): {"callback": lambda *_: self.remote_connection_switch.set_active(False)},
_("Connect"): {"callback": lambda url, bearer: generic_actions.connect_remote(url,bearer), "appearance": "suggested"}
}
entries = [