TagSpaces is an offline, open source, document manager with tagging support
correcting the showing of the welcome dialog
Ilian14acb946020f
diff --git a/data/js/core.api.js b/data/js/core.api.jsindex 55e797232..6b5fa8b05 100644--- a/data/js/core.api.js+++ b/data/js/core.api.js@@ -76,27 +76,22 @@ define(function(require, exports, module) {initKeyBindings();$( "#loading" ).hide();- // Show start hint by no last location- var lastLocation = tsSettings.getLastOpenedLocation();- if(lastLocation === undefined || lastLocation.length < 1 ) {- tsCoreUI.showWelcomeDialog();- }+ // Show welcome dialog of first start+ if(tsSettings.isFirstRun()) {+ tsCoreUI.showWelcomeDialog();+ }- // Show start hint by no locations+ // Show welcome dialog by no locationsif(tsSettings.Settings.tagspacesList.length < 1 ) {$( "#createNewLocation" ).tooltip( "show" );$( "#locationName" ).prop('disabled', true);$( "#selectLocation" ).prop('disabled', true);- // tsCoreUI.showWelcomeDialog();+ tsCoreUI.showWelcomeDialog();}-// console.log("Settings Test: "+JSON.stringify(tsSettings.getSupportedLanguages()));-// console.log("Settings Test: "+tsSettings.getInterfaceLangauge());-// console.log("Settings Test: "+tsSettings.getCloseViewerKeyBinding());-// Handle command line argument in node-webkitif(isNode) {- tsIOApi.handleCommandLineArguments();+ tsIOApi.handleStartParameters();}console.log("Layout initialized");