Skip to content

TagSpaces is an offline, open source, document manager with tagging support

gh247 fix

Borislav Sapundzhiev3fb1950abc6f
diff --git a/data/js/core.api.js b/data/js/core.api.js
index cb1ce9c04..009213c91 100644
--- a/data/js/core.api.js
+++ b/data/js/core.api.js
@@ -384,9 +384,11 @@ define(function(require, exports, module) {
function showPerspectiveMenu() {
$(".perspectiveMainMenuButton").show();
}
-
+ //TODO: save state on file operations
+ var saveOpenCol1 = false;
function openFileViewer() {
shouldOpenCol3 = true;
+ saveOpenCol1 = shouldOpenCol1;
reLayout();
}
@@ -398,6 +400,7 @@ define(function(require, exports, module) {
function toggleFullWidth() {
isFullWidth = !isFullWidth;
+ shouldOpenCol1 = saveOpenCol1;
reLayout();
}