Add Initial state for QueryTextBoxCursorMovedToEnd

This commit is contained in:
DB p 2025-03-23 17:21:03 +09:00
parent 839c26d7d7
commit 0ef4b05808

View file

@ -143,7 +143,9 @@ namespace Flow.Launcher
// Since the default main window visibility is visible, so we need set focus during startup
QueryTextBox.Focus();
// Set the initial state of the QueryTextBoxCursorMovedToEnd property
// Without this part, when shown for the first time, switching the context menu does not move the cursor to the end.
_viewModel.QueryTextCursorMovedToEnd = false;
_viewModel.PropertyChanged += (o, e) =>
{
switch (e.PropertyName)