Skip to content

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

fix setting saving for booleans

Ilian Sapundshiev9df4cf76468b
diff --git a/app/perspectives/grid-perspective/components/MainContainer.js b/app/perspectives/grid-perspective/components/MainContainer.js
index b8ff385d4..3d2f096a2 100644
--- a/app/perspectives/grid-perspective/components/MainContainer.js
+++ b/app/perspectives/grid-perspective/components/MainContainer.js
@@ -190,8 +190,13 @@ class GridPerspective extends React.Component<Props, State> {
fileOperationsEnabled: false,
allFilesSelected: false,
showDirectories:
- settings && settings.showDirectories ? settings.showDirectories : true,
- showTags: settings && settings.showTags ? settings.showTags : true,
+ settings && typeof settings.showDirectories !== 'undefined'
+ ? settings.showDirectories
+ : true,
+ showTags:
+ settings && typeof settings.showTags !== 'undefined'
+ ? settings.showTags
+ : true,
isDeleteMultipleFilesDialogOpened: false,
isMoveCopyFilesDialogOpened: false,
isAddRemoveTagsDialogOpened: false,
@@ -609,7 +614,8 @@ class GridPerspective extends React.Component<Props, State> {
theme,
selectedEntries,
addTags,
- supportedFileTypes
+ supportedFileTypes,
+ openFile
} = this.props;
if (!fsEntry.isFile && !showDirectories) {
return;
@@ -639,6 +645,7 @@ class GridPerspective extends React.Component<Props, State> {
handleTagMenu={this.handleTagMenu}
layoutType={layoutType}
showTags={this.state.showTags}
+ openFile={openFile}
handleGridContextMenu={this.handleGridContextMenu}
handleGridCellDblClick={this.handleGridCellDblClick}
handleGridCellClick={this.handleGridCellClick}