Switching to dialog approach

This commit is contained in:
2025-09-18 15:36:30 +02:00
parent 9f67e85088
commit 4d06e6740e
3 changed files with 39 additions and 28 deletions

View File

@@ -38,13 +38,12 @@ public class MainWindow
shortcuts = new PasswordStoreShortcutCollection(shortcutsGroup);
LoadDefaultShortcuts();
}
private void OnAddShortcutClicked(object sender, EventArgs e)
{
var window = new AddShortcutWindow().Window;
window.Application = Window.Application;
window.Show();
}
private void OnAddShortcutClicked(object sender, EventArgs e)
{
var dialog = new AddShortcutWindow().Dialog;
dialog.Present(Window);
}
public void AddShortcut(string path)