Skip to content

Commit 559805e

Browse files
committed
Extended the existing overwrite warning to allow users to continue the installation at their own risk.
1 parent 1fd4493 commit 559805e

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# GameVault App Changelog
22

3+
## 1.17.2
4+
Recommended Gamevault Server Version: `v15.0.2`
5+
### Changes
6+
- Added authorization to the admin panel’s registration action, allowing administrators to register users even when server-side registration is disabled.
7+
- Extended the existing overwrite warning to allow users to continue the installation at their own risk.
8+
39
## 1.17.1
410
Recommended Gamevault Server Version: `v15.0.2`
511
### Changes

gamevault/UserControls/GameDownloadUserControl.xaml.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -652,8 +652,12 @@ private async Task Install()
652652
{
653653
if (InstallViewModel.Instance.InstalledGames.Any(game => game.Key.ID == ViewModel.Game.ID))
654654
{
655-
await ((MetroWindow)App.Current.MainWindow).ShowMessageAsync($"The Game {ViewModel.Game.Title} is already installed at \n'{InstallViewModel.Instance.InstalledGames.First(game => game.Key.ID == ViewModel.Game.ID).Value}'", "", MessageDialogStyle.Affirmative, new MetroDialogSettings() { AffirmativeButtonText = "Ok", AnimateHide = false });
656-
return;
655+
MessageDialogResult result = await ((MetroWindow)App.Current.MainWindow).ShowMessageAsync($"The Game {ViewModel.Game.Title} is already installed at \n'{InstallViewModel.Instance.InstalledGames.First(game => game.Key.ID == ViewModel.Game.ID).Value}'" +
656+
$"\nWarning: Overwriting an existing installation with a new one may cause data corruption.", "",
657+
MessageDialogStyle.AffirmativeAndNegative, new MetroDialogSettings() { AffirmativeButtonText = "Continue", NegativeButtonText = "Cancel", AnimateHide = false });
658+
659+
if (result == MessageDialogResult.Negative)
660+
return;
657661
}
658662
string targedDir = (SettingsViewModel.Instance.MountIso && Directory.Exists(mountedDrive)) ? mountedDrive : $"{m_DownloadPath}\\Extract";
659663

0 commit comments

Comments
 (0)