Skip to content

Commit

Permalink
Added comment on preview states
Browse files Browse the repository at this point in the history
  • Loading branch information
harshad1 committed Jun 3, 2024
1 parent 0188154 commit e947739
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,7 @@ public void setDocumentPreviewState(final String path, final boolean isViewMode)
public boolean getDocumentPreviewState(final String path) {
// Use global setting as default
final boolean _default = isPreferViewMode();
// Always open in preview state when prefer preview mode is enabled
if (_default || !fexists(path)) {
return _default;
} else {
Expand Down

0 comments on commit e947739

Please sign in to comment.