fix: regression by bad merge in 1600bf6

This commit is contained in:
CJ van den Berg 2025-11-18 19:33:40 +01:00
parent f26d0534de
commit 9597dd7b6d
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -111,8 +111,6 @@ pub fn Create(options: type) type {
try options.load_entries_with_args(self, ctx)
else
try options.load_entries(self);
if (self.entries.items.len > 0)
self.initial_selected = self.menu.selected;
if (@hasDecl(options, "restore_state"))
options.restore_state(self) catch {};
if (@hasDecl(options, "initial_query")) blk: {