Skip to content

Commit

Permalink
- Bug fix: Media slider video was sometimes rendered on top of a popup
Browse files Browse the repository at this point in the history
- Bug fix: Crash on Media Slider navigation
- Bug fix: Crash on create shortcut after installation
  • Loading branch information
Yelo420 committed Nov 8, 2024
1 parent eb29f66 commit b0889a2
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 10 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# GameVault App Changelog

## 1.13.2
Recommended Gamevault Server Version: `v13.1.0`
### Changes

- Bug fix: Media slider video was sometimes rendered on top of a popup
- Bug fix: Crash on Media Slider navigation
- Bug fix: Crash on create shortcut after installation

## 1.13.1
Recommended Gamevault Server Version: `v13.1.0`
### Changes
Expand Down
2 changes: 1 addition & 1 deletion gamevault/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
//(used if a resource is not found in the page,
// app, or any theme specific resource dictionaries)
)]
[assembly: AssemblyVersion("1.13.1.0")]
[assembly: AssemblyVersion("1.13.2.0")]
[assembly: AssemblyCopyright("© Phalcode™. All Rights Reserved.")]
#if DEBUG
[assembly: XmlnsDefinition("debug-mode", "Namespace")]
Expand Down
2 changes: 1 addition & 1 deletion gamevault/UserControls/GameDownloadUserControl.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,7 @@ await Task.Run(() =>
{
await Task.Delay(1000);
var game = InstallViewModel.Instance.InstalledGames.Where(g => g.Key.ID == ViewModel.Game.ID).FirstOrDefault();
if (game.Key == null)
if (game.Key == null || !Directory.Exists(game.Value))
return;

if (!File.Exists(Preferences.Get(AppConfigKey.Executable, $"{game.Value}\\gamevault-exec")))
Expand Down
1 change: 0 additions & 1 deletion gamevault/UserControls/GameViewUserControl.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,6 @@ private void GameSettings_Click(object sender, RoutedEventArgs e)
if (ViewModel.Game == null)
return;

uiMediaSlider.UnloadMediaSlider();
MainWindowViewModel.Instance.OpenPopup(new GameSettingsUserControl(ViewModel.Game) { Width = 1200, Height = 800, Margin = new Thickness(50) });
}
private async void GameDownload_Click(object sender, RoutedEventArgs e)
Expand Down
7 changes: 5 additions & 2 deletions gamevault/UserControls/GeneralControls/MediaSlider.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,11 @@ private async Task MediaSliderNavigate(string url)
{
uiWebView.Visibility = Visibility.Visible;
}
uiWebView.CoreWebView2.Navigate(url);

try
{
uiWebView.CoreWebView2.Navigate(url);
}
catch { }
}
private void ToggleFullscreen()
{
Expand Down
4 changes: 4 additions & 0 deletions gamevault/ViewModels/MainWindowViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,10 @@ public FrameworkElement Popup
}
public void OpenPopup(FrameworkElement userControl)
{
if (MainWindowViewModel.Instance.ActiveControl?.GetType() == typeof(GameViewUserControl))//Else the popup would be rendered below the media slider because of the airspace problem
{
((GameViewUserControl)MainWindowViewModel.Instance.ActiveControl).uiMediaSlider.UnloadMediaSlider();
}
Popup = userControl;
}
public void ClosePopup()
Expand Down
6 changes: 1 addition & 5 deletions gamevault/Windows/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -212,11 +212,7 @@ private void InitNewsTimer()
}

private void News_Click(object sender, System.Windows.Input.MouseButtonEventArgs e)
{
if (MainWindowViewModel.Instance.ActiveControl.GetType() == typeof(GameViewUserControl))//Else the news popup would be rendered below the media slider because of the airspace problem
{
((GameViewUserControl)MainWindowViewModel.Instance.ActiveControl).uiMediaSlider.UnloadMediaSlider();
}
{
MainWindowViewModel.Instance.OpenPopup(new NewsPopup());
try
{
Expand Down

0 comments on commit b0889a2

Please sign in to comment.