fix: remove multiEditorEnabled

This commit is contained in:
Baptiste Grob
2021-01-05 13:02:03 +01:00
parent 252183a7c5
commit f7f3b062fb

View File

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