fix: miss update properties when marker change

pull/1347/head
rainmote 2021-02-05 22:08:11 +08:00 committed by Tienson Qin
parent 4256b50fac
commit 284432d00b
2 changed files with 2 additions and 2 deletions

View File

@ -69,7 +69,7 @@
(let [result (.showOpenDialogSync dialog (bean/->js
{:properties ["openDirectory"]}))
path (first result)]
(.. window -webContents
(.. ^js window -webContents
(send "open-dir-confirmed"
(bean/->js {:opened? true})))
(get-files path)))

View File

@ -981,7 +981,7 @@
[{:block/keys [uuid marker content meta file dummy? properties] :as block} new-marker]
(let [new-content (string/replace-first content marker new-marker)]
(save-block-if-changed! block new-content
(with-marker-time block marker))))
{:custom-properties (with-marker-time block new-marker)})))
(defn set-priority
[{:block/keys [uuid marker priority content meta file dummy?] :as block} new-priority]