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
......@@ -213,11 +213,11 @@ window.setInterval(function() {
}
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;
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;
menu_modified = true;
}
......
......@@ -30,10 +30,10 @@ LOGGER.addHandler(HANDLER)
LOGGER.setLevel(logging.INFO)
# # run GUI
# from agkyra import gui
# gui.run()
from agkyra import gui
gui.run()
# run cli
from agkyra.cli import AgkyraCLI
from sys import argv
AgkyraCLI().onecmd(' '.join(argv[1:] or ['help', ]))
# from agkyra.cli import AgkyraCLI
# from sys import argv
# AgkyraCLI().onecmd(' '.join(argv[1:] or ['help', ]))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment