feat: refresh open_recent palette when the project is done loading the file list

This commit is contained in:
CJ van den Berg 2025-08-05 10:23:53 +02:00
parent 4ca455cbba
commit 67fc1581d3
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
3 changed files with 16 additions and 10 deletions

View file

@ -200,6 +200,10 @@ fn process_project_manager(self: *Self, m: tp.message) MessageFilter.Error!void
self.need_reset = true;
if (!std.mem.eql(u8, self.inputbox.text.items, query))
try self.start_query();
} else if (try cbor.match(m.buf, .{ "PRJ", "open_done", tp.string, tp.extract(&self.longest), tp.any })) {
self.query_pending = false;
self.need_reset = true;
try self.start_query();
} else {
self.logger.err("receive", tp.unexpected(m));
}