Commit 05acb9a8 authored by jan.koester's avatar jan.koester
Browse files

deb

parent 0b89a053
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
blogi (20260415+3) unstable; urgency=medium

  * Fix stale currentProps after property save in PropertyPanel

 -- Jan Koester <jan.koester@tuxist.de>  Tue, 15 Apr 2026 00:00:00 +0200

blogi (20260415+2) unstable; urgency=medium

  * Add blogi-dev package with headers and static library
+6 −0
Original line number Diff line number Diff line
@@ -35,12 +35,18 @@ ColumnLayout {
        var props = {}
        props[key] = value
        localApi.setElementProperties(currentUuid, JSON.stringify({ properties: props }))
        var cp = Object.assign({}, currentProps)
        cp[key] = value
        currentProps = cp
        root.setStatus("Saved")
    }

    function saveProperties(propsObj) {
        if (!currentUuid) return
        localApi.setElementProperties(currentUuid, JSON.stringify({ properties: propsObj }))
        var cp = Object.assign({}, currentProps)
        for (var k in propsObj) cp[k] = propsObj[k]
        currentProps = cp
        root.setStatus("Saved")
    }