TagSpaces is an offline, open source, document manager with tagging support
reanabling opening of the last opened location
Ilian935c3eb91edc
diff --git a/data/ext/perspectiveGrid/extension.js b/data/ext/perspectiveGrid/extension.jsindex 511ba7b69..711a1cfd0 100644--- a/data/ext/perspectiveGrid/extension.js+++ b/data/ext/perspectiveGrid/extension.js@@ -42,15 +42,17 @@ define(function(require, exports, module) {var load = function () {console.log("Loading perspective "+extensionID);- if(UI != undefined) {+ if(UI == undefined) {+ window.setTimeout(function() { UI.reInit() }, 1000)+ } else {UI.reInit();- } else {- TSCORE.hideLoadingAnimation();- }+ }};var clearSelectedFiles = function() {- UI.clearSelectedFiles();+ if(UI != undefined) {+ UI.clearSelectedFiles();+ }};var removeFileUI = function(filePath) {diff --git a/data/ext/perspectiveList/extension.js b/data/ext/perspectiveList/extension.jsindex 9e3afc920..a642f87fd 100644--- a/data/ext/perspectiveList/extension.js+++ b/data/ext/perspectiveList/extension.js@@ -35,25 +35,21 @@ define(function(require, exports, module) {);};- var platformTuning = function() {- if(isCordova) {- //$("#"+extensionID+"IncludeSubDirsButton").hide();- //$("#"+extensionID+"ShowFileDetailsButton").hide();- //$("#"+extensionID+"ShowTagsButton").hide();- }- };+ var platformTuning = function() {};var load = function () {console.log("Loading perspective "+extensionID);- if(UI != undefined) {+ if(UI == undefined) {+ window.setTimeout(function() { UI.reInit() }, 1000)+ } else {UI.reInit();- } else {- TSCORE.hideLoadingAnimation();}};var clearSelectedFiles = function() {- UI.clearSelectedFiles();+ if(UI != undefined) {+ UI.clearSelectedFiles();+ }};var removeFileUI = function(filePath) {diff --git a/data/js/perspective.manager.js b/data/js/perspective.manager.jsindex e8e02171f..adbf2335e 100644--- a/data/js/perspective.manager.js+++ b/data/js/perspective.manager.js@@ -42,7 +42,6 @@ var initPerspectives = function () {// Creating perspective's container$("#viewContainers").append($("<div>", {id: perspective.ID+"Container",- class: "btn-toolbar",text: perspective.Title,style: "width: 100%; height: 100%",}).hide());@@ -50,9 +49,7 @@ var initPerspectives = function () {// Creating perspective's footer$("#viewFooters").append($("<div>", {id: perspective.ID+"Footer",- class: "btn-toolbar",text: perspective.Title,- style: "width: 100%; height: 100%",}).hide());perspective.init();} catch(e) {@@ -64,7 +61,7 @@ var initPerspectives = function () {// Opening last saved location by the start of the applicationvar lastLocation = TSCORE.Config.getLastOpenedLocation();if(lastLocation != undefined && lastLocation.length > 1) {- // TSCORE.openLocation(lastLocation);+ TSCORE.openLocation(lastLocation);}}}@@ -271,7 +268,7 @@ var changePerspective = function (viewType) {// Clear the list with the selected filesclearSelectedFiles();- // Enabled the search functionality+ // Enabled the main toolbar e.g. search functionalityTSCORE.enableTopToolbar();TSCORE.hideLoadingAnimation();