diff options
| author | Oskar Nyberg <oskar@mullvad.net> | 2024-03-20 11:05:18 +0100 |
|---|---|---|
| committer | Oskar Nyberg <oskar@mullvad.net> | 2024-03-20 11:05:18 +0100 |
| commit | 4b4304f57a8236e349654f8841d09e6db1432dc2 (patch) | |
| tree | 21757b043e3268e83066eb8ee1d8d9ff6d3c001d /gui/src/main/window-controller.ts | |
| parent | 625a7874ec2341a268a67162b4d6af3e804d7473 (diff) | |
| parent | 4ba956b8da8fb25f36b0ccac1c700b11205d7861 (diff) | |
| download | mullvadvpn-4b4304f57a8236e349654f8841d09e6db1432dc2.tar.xz mullvadvpn-4b4304f57a8236e349654f8841d09e6db1432dc2.zip | |
Merge branch 'map-scaling-incorrectly-des-692'
Diffstat (limited to 'gui/src/main/window-controller.ts')
| -rw-r--r-- | gui/src/main/window-controller.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gui/src/main/window-controller.ts b/gui/src/main/window-controller.ts index 830f6fd1af..b18775a8b5 100644 --- a/gui/src/main/window-controller.ts +++ b/gui/src/main/window-controller.ts @@ -271,6 +271,10 @@ export default class WindowController { _display: Display, changedMetrics: string[], ) => { + if (changedMetrics.includes('scaleFactor')) { + IpcMainEventChannel.window.notifyScaleFactorChange?.(); + } + if (changedMetrics.includes('workArea') && this.window?.isVisible()) { this.onWorkAreaSizeChange(); if (process.platform === 'win32') { |
