fix: save file when toggling auto_save on
This commit is contained in:
parent
15c9469365
commit
9026404d6d
1 changed files with 2 additions and 0 deletions
|
|
@ -5014,6 +5014,8 @@ pub const Editor = struct {
|
|||
else
|
||||
buffer.disable_auto_save();
|
||||
self.send_editor_auto_save(buffer.is_auto_save()) catch {};
|
||||
if (buffer.is_auto_save())
|
||||
tp.self_pid().send(.{ "cmd", "save_file", .{} }) catch {};
|
||||
}
|
||||
pub const toggle_auto_save_meta: Meta = .{ .description = "Toggle auto save" };
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue