fix(palette): wrong use of command.ID in set_used_time
This commit is contained in:
parent
c5f9f37c4c
commit
c1d3394246
1 changed files with 4 additions and 1 deletions
|
@ -423,7 +423,10 @@ fn update_used_time(self: *Self, id: command.ID) void {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn set_used_time(self: *Self, id: command.ID, used_time: i64) void {
|
fn set_used_time(self: *Self, id: command.ID, used_time: i64) void {
|
||||||
self.commands.items[id].used_time = used_time;
|
for (self.commands.items) |*cmd_| if (cmd_.id == id) {
|
||||||
|
cmd_.used_time = used_time;
|
||||||
|
return;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
fn write_state(self: *Self) !void {
|
fn write_state(self: *Self) !void {
|
||||||
|
|
Loading…
Add table
Reference in a new issue