Skip to content

Commit

Permalink
Updated new filter group string to create sub group by default
Browse files Browse the repository at this point in the history
  • Loading branch information
jschick04 authored and bill-long committed Feb 7, 2024
1 parent 9bb42af commit 1c621fb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/EventLogExpert.UI/Models/FilterGroupModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public sealed record FilterGroupModel
[JsonIgnore]
public Guid Id { get; } = Guid.NewGuid();

public string Name { get; set; } = "New Filter Group";
public string Name { get; set; } = "New Filter Section\\New Filter Group";

public string DisplayName => Name.Split('\\').Last();

Expand Down
5 changes: 4 additions & 1 deletion src/EventLogExpert/MainPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,10 @@ private void PopulateOtherLogsMenu()

private async void SaveAllFilters_Clicked(object sender, EventArgs e)
{
var groupName = await _dialogService.DisplayPrompt("Group Name", "What would you like to name this group?");
var groupName = await _dialogService.DisplayPrompt(
"Group Name",
"What would you like to name this group?",
"New Filter Section\\New Filter Group");

if (string.IsNullOrEmpty(groupName)) { return; }

Expand Down

0 comments on commit 1c621fb

Please sign in to comment.