Skip to content

Commit d3b75db

Browse files
Fix version check
1 parent 72a8129 commit d3b75db

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
1.0.29 : 2022/09/24
2+
- Use BLE instead of bluetooth serial for all versions
3+
- Avoid state corruption when changing patches quickly
4+
15
1.0.27 : 2021/09/14
26
- Remove unused soundshed.com community features.
37

src/core/appViewModel.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -371,11 +371,10 @@ export class AppViewModel {
371371

372372
public refreshAppInfo() {
373373

374-
375374
try {
376375

377-
// const info = { version: remote.app.getVersion(), name: remote.app.getName() };
378-
// AppStateStore.update(s => { s.appInfo = info });
376+
const info = { version: getAppVersion(), name: "Soundshed" };
377+
AppStateStore.update(s => { s.appInfo = info });
379378
} catch (err) {
380379
this.log("Failed to get app version info: " + err)
381380
}

src/core/platformUtils.electron.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { app, shell, ipcRenderer } from "electron";
22
import { PlatformEvents } from "./utils";
3+
import envSettings from "../env";
34

45
const evt: PlatformEvents = new PlatformEvents();
56

@@ -9,7 +10,7 @@ const openLink = (e, linkUrl) => {
910
};
1011

1112
const getAppVersion = () => {
12-
return app.getVersion()?.replace("v", "")
13+
return envSettings.Version;
1314
}
1415

1516
export { openLink, evt as platformEvents, ipcRenderer as nativeEvents, getAppVersion };

0 commit comments

Comments
 (0)