From 32df119c6010fbd6ed162317136e7eccbb66e63e Mon Sep 17 00:00:00 2001 From: jeffser Date: Thu, 10 Oct 2024 22:30:52 -0600 Subject: [PATCH] Reconnect dialog added --- src/window.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/window.py b/src/window.py index a2a7d99..7282495 100644 --- a/src/window.py +++ b/src/window.py @@ -666,7 +666,6 @@ Generate a title following these rules: def connection_error(self): logger.error("Connection error") if self.ollama_instance.remote: - #dialogs.reconnect_remote(self) options = { _("Close Alpaca"): { "callback": lambda *_: self.get_application().quit(), @@ -692,8 +691,7 @@ Generate a title following these rules: "placeholder": _('Bearer Token (Optional)') } ] - - + dialog_widget.Entry(_('Connection Error'), _('The remote instance has disconnected'), list(options)[0], options, entries) else: self.ollama_instance.reset() self.show_toast(_("There was an error with the local Ollama instance, so it has been reset"), self.main_overlay)