diff --git a/src/dialogs.py b/src/dialogs.py index 0b8f258..2a458cf 100644 --- a/src/dialogs.py +++ b/src/dialogs.py @@ -206,10 +206,10 @@ def reconnect_remote_response(self, dialog, task, entry): elif response == "close": self.destroy() -def reconnect_remote(self): +def reconnect_remote(self, current_url): entry = Gtk.Entry( css_classes = ["error"], - text = self.ollama_url + text = current_url ) dialog = Adw.AlertDialog( heading=_("Connection Error"), diff --git a/src/window.py b/src/window.py index 3f13b6d..fc979e1 100644 --- a/src/window.py +++ b/src/window.py @@ -785,7 +785,7 @@ class AlpacaWindow(Adw.ApplicationWindow): def connection_error(self): if self.run_remote: - dialogs.reconnect_remote(self) + dialogs.reconnect_remote(self, connection_handler.url) else: local_instance.reset(self.data_dir) self.show_toast("error", 7, self.main_overlay)