refactor: update for Yazi v25.2.26

This commit is contained in:
sxyazi
2025-03-02 22:34:26 +08:00
parent 5186af7984
commit 3d0c7c6be9
11 changed files with 31 additions and 31 deletions

View File

@@ -1,4 +1,4 @@
--- @since 25.2.7
--- @since 25.2.26
local toggle_ui = ya.sync(function(self)
if self.children then
@@ -12,7 +12,7 @@ end)
local subscribe = ya.sync(function(self)
ps.unsub("mount")
ps.sub("mount", function() ya.manager_emit("plugin", { self._id, "refresh" }) end)
ps.sub("mount", function() ya.mgr_emit("plugin", { self._id, "refresh" }) end)
end)
local update_partitions = ya.sync(function(self, partitions)
@@ -113,7 +113,7 @@ function M:entry(job)
elseif run == "enter" then
local active = active_partition()
if active and active.dist then
ya.manager_emit("cd", { active.dist })
ya.mgr_emit("cd", { active.dist })
end
else
tx2:send(run)