Skip to content
Snippets Groups Projects
Commit fc80f096 authored by Stavros Sachtouris's avatar Stavros Sachtouris Committed by Giorgos Korfiatis
Browse files

Redraw GUI menu only when there are visual updates

parent 13d570ce
No related branches found
No related tags found
No related merge requests found
...@@ -213,11 +213,11 @@ window.setInterval(function() { ...@@ -213,11 +213,11 @@ window.setInterval(function() {
} }
new_progress = status.synced + ' of ' + status.unsynced + ' synced'; new_progress = status.synced + ' of ' + status.unsynced + ' synced';
} }
if (new_pause != pause_item.label) { if (new_pause !== pause_item.label.slice(0, new_pause.length)) {
pause_item.label = new_pause; pause_item.label = new_pause;
menu_modified = true; menu_modified = true;
} }
if (new_progress != progress_item.label) { if (new_progress !== progress_item.label.slice(0, new_progress.length)) {
progress_item.label = new_progress; progress_item.label = new_progress;
menu_modified = true; menu_modified = true;
} }
......
...@@ -30,10 +30,10 @@ LOGGER.addHandler(HANDLER) ...@@ -30,10 +30,10 @@ LOGGER.addHandler(HANDLER)
LOGGER.setLevel(logging.INFO) LOGGER.setLevel(logging.INFO)
# # run GUI # # run GUI
# from agkyra import gui from agkyra import gui
# gui.run() gui.run()
# run cli # run cli
from agkyra.cli import AgkyraCLI # from agkyra.cli import AgkyraCLI
from sys import argv # from sys import argv
AgkyraCLI().onecmd(' '.join(argv[1:] or ['help', ])) # AgkyraCLI().onecmd(' '.join(argv[1:] or ['help', ]))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment