Check if remote instance is connected at start when the toggle is on

This commit is contained in:
jeffser 2024-05-29 12:04:05 -06:00
parent 9e19698788
commit ae48a17301

View File

@ -896,7 +896,7 @@ class AlpacaWindow(Adw.ApplicationWindow):
local_instance.start() local_instance.start()
connection_handler.url = f"http://127.0.0.1:{local_instance.port}" connection_handler.url = f"http://127.0.0.1:{local_instance.port}"
self.welcome_dialog.present(self) self.welcome_dialog.present(self)
if self.verify_connection() is False and self.run_remote == False: self.connection_error() if self.verify_connection() is False: self.connection_error()
self.update_list_available_models() self.update_list_available_models()
self.load_history() self.load_history()
self.update_chat_list() self.update_chat_list()