added tray menu
This commit is contained in:
@@ -115,6 +115,13 @@ internal sealed class RegistryStartup
|
||||
/// What Windows is to run. <c>null</c> — the path of the running program is
|
||||
/// unknown, and there is nothing to write down.
|
||||
/// </summary>
|
||||
private static string? GetCommand() =>
|
||||
Environment.ProcessPath is { Length: > 0 } path ? $"\"{path}\"" : null;
|
||||
/// <remarks>
|
||||
/// The argument is how the application recognises a launch of this kind and goes
|
||||
/// straight to the tray: see <see cref="StartupLaunch"/>. The user starting the
|
||||
/// application themselves passes no such thing and gets the window.
|
||||
/// </remarks>
|
||||
internal static string? GetCommand() =>
|
||||
Environment.ProcessPath is { Length: > 0 } path
|
||||
? $"\"{path}\" {StartupLaunch.Argument}"
|
||||
: null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user