Add launcher edit action

This commit is contained in:
Ray Berezowski
2026-08-26 19:49:49 -04:00
parent 362cd94138
commit 32f08bc0fd
6 changed files with 52 additions and 4 deletions

View File

@@ -41,6 +41,12 @@ public sealed class LauncherController : IDisposable
settingsWindow.Activate();
}
public void ShowSettings(LauncherItem itemToEdit)
{
settingsWindow ??= new MainWindow(this);
settingsWindow.SelectItemForEdit(itemToEdit);
}
public void ShowAbout()
{
if (aboutWindow?.IsVisible == true)
@@ -64,7 +70,7 @@ public sealed class LauncherController : IDisposable
return;
}
popup = new LauncherPopup(Config, LaunchItem, OpenAllItems, ShowSettings);
popup = new LauncherPopup(Config, LaunchItem, OpenAllItems, ShowSettings, ShowSettings);
popup.Closed += (_, _) => popup = null;
popup.ShowNearTaskbar();
}