Title for identifyable commands

This commit is contained in:
2023-07-29 15:38:50 +02:00
parent fd095df1bb
commit 604294fd2a
38 changed files with 122 additions and 110 deletions

View File

@@ -27,8 +27,12 @@ public sealed class SwitchToTabCommand : IIdentifiableUserCommand
{
TabNumber = tabNumber;
UserCommandID = commandName;
Title = tabNumber == -1
? "Switch to last tab"
: $"Switch to tab {tabNumber}";
}
public string UserCommandID { get; }
public int TabNumber { get; }
public string Title { get; }
}