Add launcher item notes
This commit is contained in:
@@ -614,6 +614,7 @@ public partial class MainWindow : Window
|
||||
TargetBox.Text = item.Target;
|
||||
ArgumentsBox.Text = item.Arguments ?? "";
|
||||
WorkingFolderBox.Text = item.WorkingFolder ?? "";
|
||||
NotesBox.Text = item.Notes ?? "";
|
||||
IconPathBox.Text = item.IconPath ?? "";
|
||||
loadedAutoIconPath = GetAutomaticIconPath(item);
|
||||
ItemDisplayModeBox.SelectedItem = item.DisplayMode;
|
||||
@@ -634,6 +635,7 @@ public partial class MainWindow : Window
|
||||
TargetBox.Text = "";
|
||||
ArgumentsBox.Text = "";
|
||||
WorkingFolderBox.Text = "";
|
||||
NotesBox.Text = "";
|
||||
IconPathBox.Text = "";
|
||||
loadedAutoIconPath = null;
|
||||
ItemDisplayModeBox.SelectedItem = controller?.Config.DisplayMode;
|
||||
@@ -660,6 +662,7 @@ public partial class MainWindow : Window
|
||||
selectedItem.WorkingFolder = LauncherController.CanUseLaunchOptions(selectedItem.Type) && !string.IsNullOrWhiteSpace(WorkingFolderBox.Text)
|
||||
? WorkingFolderBox.Text.Trim()
|
||||
: null;
|
||||
selectedItem.Notes = string.IsNullOrWhiteSpace(NotesBox.Text) ? null : NotesBox.Text.Trim();
|
||||
EnsureAutomaticIconPath();
|
||||
selectedItem.IconPath = string.IsNullOrWhiteSpace(IconPathBox.Text) ? null : IconPathBox.Text.Trim();
|
||||
if (ItemDisplayModeBox.SelectedItem is LauncherDisplayMode itemMode)
|
||||
@@ -975,6 +978,7 @@ public partial class MainWindow : Window
|
||||
Target = item.Target,
|
||||
Arguments = item.Arguments,
|
||||
WorkingFolder = item.WorkingFolder,
|
||||
Notes = item.Notes,
|
||||
IconPath = item.IconPath,
|
||||
IsFavorite = item.IsFavorite,
|
||||
IsDisabled = item.IsDisabled,
|
||||
@@ -1935,6 +1939,7 @@ public partial class MainWindow : Window
|
||||
!string.IsNullOrWhiteSpace(WorkingFolderBox.Text)
|
||||
? WorkingFolderBox.Text.Trim()
|
||||
: null,
|
||||
Notes = string.IsNullOrWhiteSpace(NotesBox.Text) ? null : NotesBox.Text.Trim(),
|
||||
IconPath = string.IsNullOrWhiteSpace(IconPathBox.Text) ? null : IconPathBox.Text.Trim(),
|
||||
IsFavorite = selectedItem.IsFavorite,
|
||||
IsDisabled = selectedItem.IsDisabled,
|
||||
|
||||
Reference in New Issue
Block a user