Removed unnecesary timer start and added *60 to make it minutes
This commit is contained in:
parent
0d3b544a73
commit
4926cb157e
@ -77,7 +77,7 @@ class instance():
|
|||||||
return response
|
return response
|
||||||
|
|
||||||
def run_timer(self):
|
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)
|
window.show_toast(_("Ollama instance was shut down due to inactivity"), window.main_overlay)
|
||||||
self.stop()
|
self.stop()
|
||||||
|
|
||||||
|
@ -450,7 +450,6 @@ class message(Gtk.Overlay):
|
|||||||
self.dt = datetime.datetime.now()
|
self.dt = datetime.datetime.now()
|
||||||
self.add_footer(self.dt)
|
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.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)
|
window.save_history(chat)
|
||||||
else:
|
else:
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user