mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:37:43 +00:00
Assistant: Fix lockfile logic
Previously, Assistant was able to re-execute itself due to a quirk in the global cursor tracking logic, it seems. Now it has become necessary to explicitly drop the lockfile before activating the new Assistant instance. Alternatively, this has always been a latent bug that only now has become more likely.
This commit is contained in:
parent
dbc8465c20
commit
2f38cad987
1 changed files with 1 additions and 0 deletions
|
@ -244,6 +244,7 @@ int main(int argc, char** argv)
|
||||||
text_box.on_return_pressed = [&]() {
|
text_box.on_return_pressed = [&]() {
|
||||||
if (!app_state.selected_index.has_value())
|
if (!app_state.selected_index.has_value())
|
||||||
return;
|
return;
|
||||||
|
lockfile.release();
|
||||||
app_state.results[app_state.selected_index.value()].activate();
|
app_state.results[app_state.selected_index.value()].activate();
|
||||||
GUI::Application::the()->quit();
|
GUI::Application::the()->quit();
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue