diff --git a/Bloxstrap/Bootstrapper.cs b/Bloxstrap/Bootstrapper.cs index bd1cc7c..13f2b1f 100644 --- a/Bloxstrap/Bootstrapper.cs +++ b/Bloxstrap/Bootstrapper.cs @@ -436,10 +436,16 @@ namespace Bloxstrap .WriteToFile(newMenuShortcut); } - if (App.Settings.Prop.CreateDesktopIcon && !File.Exists(Path.Combine(Directories.Desktop, "Play Roblox.lnk"))) + if (App.Settings.Prop.CreateDesktopIcon) { - ShellLink.Shortcut.CreateShortcut(Directories.Application, "", Directories.Application, 0) - .WriteToFile(Path.Combine(Directories.Desktop, "Play Roblox.lnk")); + if (!File.Exists(Path.Combine(Directories.Desktop, "Play Roblox.lnk"))) + { + ShellLink.Shortcut.CreateShortcut(Directories.Application, "", Directories.Application, 0) + .WriteToFile(Path.Combine(Directories.Desktop, "Play Roblox.lnk")); + } + + // one-time toggle, set it back to false + App.Settings.Prop.CreateDesktopIcon = false; } } diff --git a/Bloxstrap/ViewModels/BootstrapperViewModel.cs b/Bloxstrap/ViewModels/BootstrapperViewModel.cs index cff73fb..2bdabfa 100644 --- a/Bloxstrap/ViewModels/BootstrapperViewModel.cs +++ b/Bloxstrap/ViewModels/BootstrapperViewModel.cs @@ -41,6 +41,12 @@ namespace Bloxstrap.ViewModels _page = page; } + public bool CreateDesktopIcon + { + get => App.Settings.Prop.CreateDesktopIcon; + set => App.Settings.Prop.CreateDesktopIcon = value; + } + public bool UpdateCheckingEnabled { get => App.Settings.Prop.CheckForUpdates; diff --git a/Bloxstrap/ViewModels/InstallationViewModel.cs b/Bloxstrap/ViewModels/InstallationViewModel.cs index 46ccd79..d999f25 100644 --- a/Bloxstrap/ViewModels/InstallationViewModel.cs +++ b/Bloxstrap/ViewModels/InstallationViewModel.cs @@ -60,12 +60,6 @@ namespace Bloxstrap.ViewModels set => App.BaseDirectory = value; } - public bool CreateDesktopIcon - { - get => App.Settings.Prop.CreateDesktopIcon; - set => App.Settings.Prop.CreateDesktopIcon = value; - } - public IEnumerable Channels { get => _channels; diff --git a/Bloxstrap/Views/MainWindow.xaml b/Bloxstrap/Views/MainWindow.xaml index 50d52ce..b15106a 100644 --- a/Bloxstrap/Views/MainWindow.xaml +++ b/Bloxstrap/Views/MainWindow.xaml @@ -62,8 +62,8 @@ - - + + diff --git a/Bloxstrap/Views/Pages/BootstrapperPage.xaml b/Bloxstrap/Views/Pages/BootstrapperPage.xaml index eb04f74..a3c4e8a 100644 --- a/Bloxstrap/Views/Pages/BootstrapperPage.xaml +++ b/Bloxstrap/Views/Pages/BootstrapperPage.xaml @@ -14,6 +14,15 @@ + + + + + + + + + diff --git a/Bloxstrap/Views/Pages/InstallationPage.xaml b/Bloxstrap/Views/Pages/InstallationPage.xaml index e0118f7..c97a6c4 100644 --- a/Bloxstrap/Views/Pages/InstallationPage.xaml +++ b/Bloxstrap/Views/Pages/InstallationPage.xaml @@ -29,16 +29,6 @@ - - - - - - - - - - diff --git a/Bloxstrap/Views/Pages/IntegrationsPage.xaml b/Bloxstrap/Views/Pages/IntegrationsPage.xaml index ced484d..feb62e6 100644 --- a/Bloxstrap/Views/Pages/IntegrationsPage.xaml +++ b/Bloxstrap/Views/Pages/IntegrationsPage.xaml @@ -74,10 +74,10 @@ @@ -88,7 +88,7 @@ - +