Commit c1a4d0bc authored by Stavros Sachtouris's avatar Stavros Sachtouris Committed by Giorgos Korfiatis
Browse files

Implement sync on start up flag and functionality

parent b4ce0b84
......@@ -208,6 +208,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
document.getElementById('title').innerHTML = SETTINGS.TITLE;
document.getElementById('appearance_label').innerHTML = SETTINGS.APPEARANCE;
document.getElementById('language_label').innerHTML = SETTINGS.LANGUAGE;
document.getElementById('start_sync_label').innerHTML = SETTINGS.SYNCONSTART;
document.getElementById('cloud_label').innerHTML = SETTINGS.CLOUD;
document.getElementById('url_label').innerHTML = SETTINGS.URL;
document.getElementById('token_label').innerHTML = SETTINGS.TOKEN;
......
......@@ -619,7 +619,7 @@ class WebSocketProtocol(WebSocket):
self._load_settings()
if (not self.syncer) and self.can_sync():
self.init_sync()
if self.syncer:
if self.syncer and self.settings['sync_on_start']:
self.start_sync()
else:
action = r.get('path', 'ui_id')
......
......@@ -50,6 +50,7 @@
"TITLE": "Ρυθμίσεις χρήστη",
"APPEARANCE": "Εμφάνιση",
"LANGUAGE": "Γλώσσα",
"SYNCONSTART": "Έναρξη συγχρονισμού στην εκκίνηση",
"CLOUD": "Απομακρυσμένο σύστημα (νέφος)",
"URL": "URL νέφους",
"TOKEN": "Κλειδί token",
......
......@@ -50,6 +50,7 @@
"TITLE": "User Settings",
"APPEARANCE": "Appearance",
"LANGUAGE": "Language",
"SYNCONSTART": "Sync on start up",
"CLOUD": "Cloud",
"URL": "Cloud URL",
"TOKEN": "User Token",
......
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