From a082e5eb65278c3ef17bb8b7ce13ea4616e31fb5 Mon Sep 17 00:00:00 2001 From: Johannes Millan Date: Sun, 12 Feb 2017 21:22:24 +0100 Subject: [PATCH] minor fixes --- app-src/scripts/_app.js | 6 ++++-- app-src/scripts/constants.js | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/app-src/scripts/_app.js b/app-src/scripts/_app.js index 0eae9f6bc3..b1b5b14db8 100644 --- a/app-src/scripts/_app.js +++ b/app-src/scripts/_app.js @@ -167,7 +167,9 @@ /* @ngInject */ function initPollGitTaskUpdates($localStorage, Git, $interval, GIT_UPDATE_POLL_INTERVAL) { // one initial - Git.checkAndUpdateTasks($localStorage.tasks); + if ($localStorage.git.projectDir && $localStorage.git.repo) { + Git.checkAndUpdateTasks($localStorage.tasks); + } $interval(() => { if ($localStorage.git.projectDir && $localStorage.git.repo) { @@ -178,7 +180,7 @@ /* @ngInject */ function showWelcomeDialog($localStorage, Dialogs) { - if ($localStorage.isShowWelcomeDialog) { + if ($localStorage.uiHelper.isShowWelcomeDialog) { Dialogs('WELCOME', undefined, true); } } diff --git a/app-src/scripts/constants.js b/app-src/scripts/constants.js index 0adbef7a14..0afb9423b2 100644 --- a/app-src/scripts/constants.js +++ b/app-src/scripts/constants.js @@ -19,7 +19,6 @@ 'isShowWelcomeDialog' ]) .constant('LS_DEFAULTS', { - isShowWelcomeDialog: true, note: undefined, theme: undefined, currentTask: undefined, @@ -64,6 +63,7 @@ }, // non setting variables which are simply saved where they are entered uiHelper: { + isShowWelcomeDialog: true, dailyTaskExportSettings: { separateBy: ', ', separateFieldsBy: '',