+
-
+
-
-
-
-
-
Zooming can be controlled with CTRL-+ and CTRL-= shortcuts as well.
@@ -108,7 +100,6 @@ export default class ApperanceOptions {
this.$themeSelect = $("#theme-select");
this.$zoomFactorSelect = $("#zoom-factor-select");
- this.$oneTabDisplaySelect = $("#one-tab-display-select");
this.$leftPaneMinWidth = $("#left-pane-min-width");
this.$leftPaneWidthPercent = $("#left-pane-width-percent");
this.$mainFontSize = $("#main-font-size");
@@ -141,13 +132,6 @@ export default class ApperanceOptions {
this.$zoomFactorSelect.on('change', () => { zoomService.setZoomFactorAndSave(this.$zoomFactorSelect.val()); });
- this.$oneTabDisplaySelect.on('change', () => {
- const hideTabRowForOneTab = this.$oneTabDisplaySelect.val() === 'hide' ? 'true' : 'false';
-
- server.put('options/hideTabRowForOneTab/' + hideTabRowForOneTab)
- .then(optionsService.reloadOptions);
- });
-
this.$leftPaneMinWidth.on('change', async () => {
await server.put('options/leftPaneMinWidth/' + this.$leftPaneMinWidth.val());
@@ -204,8 +188,6 @@ export default class ApperanceOptions {
this.$zoomFactorSelect.prop('disabled', true);
}
- this.$oneTabDisplaySelect.val(options.hideTabRowForOneTab === 'true' ? 'hide' : 'show');
-
this.$leftPaneMinWidth.val(options.leftPaneMinWidth);
this.$leftPaneWidthPercent.val(options.leftPaneWidthPercent);
diff --git a/src/public/javascripts/services/tab_row.js b/src/public/javascripts/services/tab_row.js
index 41029e2db..dde1d7306 100644
--- a/src/public/javascripts/services/tab_row.js
+++ b/src/public/javascripts/services/tab_row.js
@@ -40,7 +40,6 @@ class TabRow {
this.eventListeners = {};
this.el = el;
- this.hideTabRowForOneTab = false;
this.setupStyleEl();
this.setupEvents();
@@ -62,12 +61,6 @@ class TabRow {
}
}
- setHideTabRowForOneTab(hideTabRowForOneTab) {
- this.hideTabRowForOneTab = hideTabRowForOneTab;
-
- this.setVisibility();
- }
-
setupStyleEl() {
this.styleEl = document.createElement('style');
this.el.appendChild(this.styleEl);
@@ -92,7 +85,7 @@ class TabRow {
}
setVisibility() {
- this.el.style.display = (this.tabEls.length > 1 || !this.hideTabRowForOneTab) ? "block" : "none";
+ this.el.style.display = "block";
}
get tabEls() {
@@ -429,6 +422,4 @@ class TabRow {
const noteTabRowEl = document.querySelector('.note-tab-row');
const tabRow = new TabRow(noteTabRowEl);
-optionsService.addLoadListener(options => tabRow.setHideTabRowForOneTab(options.is('hideTabRowForOneTab')));
-
export default tabRow;
\ No newline at end of file
diff --git a/src/routes/api/options.js b/src/routes/api/options.js
index 384b5f376..06e4b1a06 100644
--- a/src/routes/api/options.js
+++ b/src/routes/api/options.js
@@ -23,7 +23,6 @@ const ALLOWED_OPTIONS = new Set([
'treeFontSize',
'detailFontSize',
'openTabs',
- 'hideTabRowForOneTab',
'noteInfoWidget',
'attributesWidget',
'linkMapWidget',
diff --git a/src/services/options_init.js b/src/services/options_init.js
index d4a5057e4..1afc7659b 100644
--- a/src/services/options_init.js
+++ b/src/services/options_init.js
@@ -79,7 +79,6 @@ const defaultOptions = [
{ name: 'similarNotesWidget', value: '{"enabled":true,"expanded":true,"position":600}', isSynced: false },
{ name: 'spellCheckEnabled', value: 'true', isSynced: false },
{ name: 'spellCheckLanguageCode', value: 'en-US', isSynced: false },
- { name: 'hideTabRowForOneTab', value: 'false', isSynced: false },
{ name: 'imageMaxWidthHeight', value: '1200', isSynced: true },
{ name: 'imageJpegQuality', value: '75', isSynced: true },
{ name: 'autoFixConsistencyIssues', value: 'true', isSynced: false },