Add launcher edit action
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user