Removed unnecesary timer start and added *60 to make it minutes

This commit is contained in:
jeffser 2024-09-02 02:56:57 -06:00
parent 0d3b544a73
commit 4926cb157e
2 changed files with 1 additions and 2 deletions

View File

@ -77,7 +77,7 @@ class instance():
return response
def run_timer(self):
if not self.idle_timer_stop_event.wait(self.idle_timer_delay*1):
if not self.idle_timer_stop_event.wait(self.idle_timer_delay*60):
window.show_toast(_("Ollama instance was shut down due to inactivity"), window.main_overlay)
self.stop()

View File

@ -450,7 +450,6 @@ class message(Gtk.Overlay):
self.dt = datetime.datetime.now()
self.add_footer(self.dt)
window.show_notification(chat.get_name(), self.text[:200] + (self.text[200:] and '...'), Gio.ThemedIcon.new("chat-message-new-symbolic"))
window.ollama_instance.start_timer()
window.save_history(chat)
else:
sys.exit()