fix: display correct app version for desktop

This commit is contained in:
Mo
2022-01-03 15:28:04 -06:00
committed by Karol Sójko
parent e79f326e5b
commit dfde84c2f6
9 changed files with 60 additions and 104 deletions

View File

@@ -226,6 +226,10 @@ export class AppState {
storage.set(StorageKey.ShowBetaWarning, true);
}
public get version(): string {
return this.bridge.appVersion;
}
async openNewNote(title?: string) {
if (!this.multiEditorSupport) {
this.closeActiveNoteController();

View File

@@ -11,7 +11,6 @@ import { ThemeManager } from '@/services/themeManager';
import { PasswordWizardScope, PasswordWizardType } from '@/types';
import { AppState } from '@/ui_models/app_state';
import { NoteGroupController } from '@/views/note_group_view/note_group_controller';
import { AppVersion } from '@/version';
import { WebDeviceInterface } from '@/web_device_interface';
import {
DeinitSource,
@@ -59,7 +58,7 @@ export class WebApplication extends SNApplication {
identifier,
[],
defaultSyncServerHost,
AppVersion,
bridge.appVersion,
enableUnfinishedFeatures,
webSocketUrl
);