Skip to content

Commit f1445e2

Browse files
committed
Console mode hotfix
1 parent 83a65e2 commit f1445e2

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/App.xaml.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,12 @@ protected override void OnStartup(StartupEventArgs startupEvent)
410410
// Process command‑line arguments
411411
foreach (var argument in commandLineArguments.Select(arg => arg.Replace("/", string.Empty)))
412412
{
413+
// Memory areas to optimize
414+
Enums.Memory.Areas area;
415+
416+
if (Enum.TryParse(argument, out area))
417+
memoryAreas |= area;
418+
413419
// Startup Type
414420
if (memoryAreas != Enums.Memory.Areas.None)
415421
startupType = Enums.StartupType.Silent;
@@ -423,12 +429,6 @@ protected override void OnStartup(StartupEventArgs startupEvent)
423429
if (argument.Equals(Constants.App.CommandLineArgument.Uninstall, StringComparison.OrdinalIgnoreCase))
424430
startupType = Enums.StartupType.Uninstallation;
425431

426-
// Memory areas to optimize
427-
Enums.Memory.Areas area;
428-
429-
if (Enum.TryParse(argument, out area))
430-
memoryAreas |= area;
431-
432432
// Notify version update
433433
if (argument.Equals(Version.ToString()))
434434
_notifications.Add(string.Format(Localizer.Culture, Localizer.String.UpdatedToVersion, string.Format(Localizer.Culture, Constants.App.VersionFormat, Version.Major, Version.Minor, Version.Build)));

src/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
[assembly: AssemblyKeyFile(Constants.App.KeyFile)]
1212
[assembly: AssemblyProduct(Constants.App.Name)]
1313
[assembly: AssemblyTitle(Constants.App.Title)]
14-
[assembly: AssemblyVersion("3.0.4.0")]
14+
[assembly: AssemblyVersion("3.0.5.0")]
1515
[assembly: ComVisible(false)]
1616
[assembly: CLSCompliant(true)]
1717
[assembly: Guid(Constants.App.Id)]

0 commit comments

Comments
 (0)