fix(flicker): home screen should not load if we have a file to open

This commit is contained in:
CJ van den Berg 2025-04-30 18:52:44 +02:00
parent 980529029f
commit c507fb905d
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -291,7 +291,8 @@ pub fn main() anyerror!void {
for (links.items) |link| {
try file_link.navigate(tui_proc.ref(), &link);
} else {
}
if (links.items.len == 0) {
if (!have_project)
try tui_proc.send(.{ "cmd", "open_project_cwd" });
try tui_proc.send(.{ "cmd", "show_home" });