feat(ui): open ListSettingsModal via context menu and gear button

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Mika Kuns
2026-04-22 13:27:05 +02:00
parent 5348220e60
commit 5784dbee94
5 changed files with 73 additions and 5 deletions

View File

@@ -17,6 +17,14 @@ public partial class ListsIslandView : UserControl
{
vm.FocusSearchRequested += (_, _) => SearchBox.Focus();
vm.ShowSettingsModal = ShowSettingsAsync;
vm.ShowListSettingsModal = async modal =>
{
var window = new ListSettingsModalView { DataContext = modal };
modal.CloseAction = () => window.Close();
var top = TopLevel.GetTopLevel(this) as Window;
if (top is null) window.Show();
else await window.ShowDialog(top);
};
}
};
}