FIX: Set dirty state on orientation change
This commit is contained in:
@@ -341,6 +341,7 @@ export const useDeviceStore = defineStore('device', {
|
|||||||
this.currentProfileName = profileName
|
this.currentProfileName = profileName
|
||||||
if (updateDevice) {
|
if (updateDevice) {
|
||||||
nanoIpc.send(this.currentDeviceId!, JSON.stringify({ current: profileName }))
|
nanoIpc.send(this.currentDeviceId!, JSON.stringify({ current: profileName }))
|
||||||
|
this.setDirtyState(true)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
setOrientation(orientation: number, updateDevice: boolean = true) {
|
setOrientation(orientation: number, updateDevice: boolean = true) {
|
||||||
@@ -350,6 +351,7 @@ export const useDeviceStore = defineStore('device', {
|
|||||||
this.currentDeviceId!,
|
this.currentDeviceId!,
|
||||||
JSON.stringify({ settings: { deviceOrientation: orientation } })
|
JSON.stringify({ settings: { deviceOrientation: orientation } })
|
||||||
)
|
)
|
||||||
|
this.setDirtyState(true)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
cycleOrientation() {
|
cycleOrientation() {
|
||||||
@@ -359,6 +361,7 @@ export const useDeviceStore = defineStore('device', {
|
|||||||
this.settings!.idleTimeout = timeout
|
this.settings!.idleTimeout = timeout
|
||||||
if (updateDevice) {
|
if (updateDevice) {
|
||||||
sendDebounced(this.currentDeviceId!, JSON.stringify({ settings: { idleTimeout: timeout } }))
|
sendDebounced(this.currentDeviceId!, JSON.stringify({ settings: { idleTimeout: timeout } }))
|
||||||
|
this.setDirtyState(true)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
setPosition(position: number) {
|
setPosition(position: number) {
|
||||||
|
|||||||
Reference in New Issue
Block a user