summaryrefslogtreecommitdiffhomepage
path: root/gui
diff options
context:
space:
mode:
Diffstat (limited to 'gui')
-rw-r--r--gui/src/main/index.ts4
-rw-r--r--gui/src/renderer/app.tsx4
-rw-r--r--gui/src/shared/ipc-schema.ts1
3 files changed, 9 insertions, 0 deletions
diff --git a/gui/src/main/index.ts b/gui/src/main/index.ts
index d242e77759..a9daa98367 100644
--- a/gui/src/main/index.ts
+++ b/gui/src/main/index.ts
@@ -1466,6 +1466,10 @@ class ApplicationMain {
return response;
});
+ IpcMainEventChannel.currentVersion.handleDisplayedChangelog(() => {
+ this.guiSettings.changelogDisplayedForVersion = this.currentVersion.gui;
+ });
+
if (windowsSplitTunneling) {
this.guiSettings.browsedForSplitTunnelingApplications.forEach(
windowsSplitTunneling.addApplicationPathToCache,
diff --git a/gui/src/renderer/app.tsx b/gui/src/renderer/app.tsx
index b23364340d..ae699b9291 100644
--- a/gui/src/renderer/app.tsx
+++ b/gui/src/renderer/app.tsx
@@ -540,6 +540,10 @@ export default class AppRenderer {
return preferredLocale ? preferredLocale.name : '';
}
+ public setDisplayedChangelog = (): void => {
+ IpcRendererEventChannel.currentVersion.displayedChangelog();
+ };
+
// Make sure that the content height is correct and log if it isn't. This is mostly for debugging
// purposes since there's a bug in Electron that causes the app height to be another value than
// the one we have set.
diff --git a/gui/src/shared/ipc-schema.ts b/gui/src/shared/ipc-schema.ts
index 93c795dd74..0ed0985bf1 100644
--- a/gui/src/shared/ipc-schema.ts
+++ b/gui/src/shared/ipc-schema.ts
@@ -123,6 +123,7 @@ export const ipcSchema = {
},
currentVersion: {
'': notifyRenderer<ICurrentAppVersionInfo>(),
+ displayedChangelog: send<void>(),
},
upgradeVersion: {
'': notifyRenderer<IAppVersionInfo>(),