added tray menu

This commit is contained in:
2026-08-12 04:59:22 +05:00
parent 08192d317e
commit a0d3098fe4
21 changed files with 1327 additions and 42 deletions
+9 -2
View File
@@ -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;
}