From 497f303b21a788a3248b69018013fcb26601c245 Mon Sep 17 00:00:00 2001 From: Robert Kossessa Date: Sun, 19 May 2024 19:20:20 +0200 Subject: [PATCH] FIX: Set dirty state on orientation change --- src/renderer/src/deviceStore.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/renderer/src/deviceStore.ts b/src/renderer/src/deviceStore.ts index b7c0566..3cddb65 100644 --- a/src/renderer/src/deviceStore.ts +++ b/src/renderer/src/deviceStore.ts @@ -341,6 +341,7 @@ export const useDeviceStore = defineStore('device', { this.currentProfileName = profileName if (updateDevice) { nanoIpc.send(this.currentDeviceId!, JSON.stringify({ current: profileName })) + this.setDirtyState(true) } }, setOrientation(orientation: number, updateDevice: boolean = true) { @@ -350,6 +351,7 @@ export const useDeviceStore = defineStore('device', { this.currentDeviceId!, JSON.stringify({ settings: { deviceOrientation: orientation } }) ) + this.setDirtyState(true) } }, cycleOrientation() { @@ -359,6 +361,7 @@ export const useDeviceStore = defineStore('device', { this.settings!.idleTimeout = timeout if (updateDevice) { sendDebounced(this.currentDeviceId!, JSON.stringify({ settings: { idleTimeout: timeout } })) + this.setDirtyState(true) } }, setPosition(position: number) {