Fixed reconnect remote instance dialog

This commit is contained in:
jeffser 2024-05-28 10:41:52 -06:00
parent 93652cd9f7
commit 19cc97a1c4
2 changed files with 3 additions and 3 deletions

View File

@ -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"),

View File

@ -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)