fix: remove multiEditorEnabled
This commit is contained in:
@@ -106,7 +106,6 @@ export class AppState {
|
|||||||
rootScopeCleanup2: any;
|
rootScopeCleanup2: any;
|
||||||
onVisibilityChange: any;
|
onVisibilityChange: any;
|
||||||
selectedTag?: SNTag;
|
selectedTag?: SNTag;
|
||||||
multiEditorEnabled = false;
|
|
||||||
showBetaWarning = false;
|
showBetaWarning = false;
|
||||||
readonly actionsMenu = new ActionsMenuState();
|
readonly actionsMenu = new ActionsMenuState();
|
||||||
readonly sync = new SyncState();
|
readonly sync = new SyncState();
|
||||||
@@ -210,7 +209,7 @@ export class AppState {
|
|||||||
: this.selectedTag.uuid
|
: this.selectedTag.uuid
|
||||||
: undefined;
|
: undefined;
|
||||||
|
|
||||||
if (!activeEditor || this.multiEditorEnabled) {
|
if (!activeEditor) {
|
||||||
this.application.editorGroup.createEditor(
|
this.application.editorGroup.createEditor(
|
||||||
undefined,
|
undefined,
|
||||||
title,
|
title,
|
||||||
@@ -235,7 +234,7 @@ export class AppState {
|
|||||||
const approved = this.application.authorizeNoteAccess(note);
|
const approved = this.application.authorizeNoteAccess(note);
|
||||||
if (approved === true || await approved) {
|
if (approved === true || await approved) {
|
||||||
const activeEditor = this.getActiveEditor();
|
const activeEditor = this.getActiveEditor();
|
||||||
if (!activeEditor || this.multiEditorEnabled) {
|
if (!activeEditor) {
|
||||||
this.application.editorGroup.createEditor(noteUuid);
|
this.application.editorGroup.createEditor(noteUuid);
|
||||||
} else {
|
} else {
|
||||||
activeEditor.setNote(note);
|
activeEditor.setNote(note);
|
||||||
|
|||||||
Reference in New Issue
Block a user