Updated DDS interface

This commit is contained in:
Diogo Duarte
2024-06-24 13:05:31 +01:00
parent b892e89712
commit 15304f3535
2 changed files with 7 additions and 7 deletions

View File

@@ -55,7 +55,7 @@ local _generate_description = ya.sync(function(state, file)
end)
local _load_state = ya.sync(function(state)
ps.sub_remote("bookmarks", function(body)
ps.sub_remote("@bookmarks", function(body)
if not state.bookmarks and body then
state.bookmarks = {}
for _, value in pairs(body) do
@@ -67,7 +67,7 @@ end)
local _save_state = ya.sync(function(state, bookmarks)
if not bookmarks then
ps.pub_static(10, "bookmarks", nil)
ps.pub_to(0, "@bookmarks", nil)
return
end
@@ -85,7 +85,7 @@ local _save_state = ya.sync(function(state, bookmarks)
end
end
ps.pub_static(10, "bookmarks", save_state)
ps.pub_to(0, "@bookmarks", save_state)
end)
local _save_last_directory = ya.sync(function(state)