From b8d20a0dbedac6ee19be91a2f432fb9f9374e99b Mon Sep 17 00:00:00 2001 From: Daniel Date: Mon, 11 Jul 2022 00:58:37 +0300 Subject: [PATCH] Stop hardcoding the height for RunLogos. Fixed an issue related to recent changes regarding image pathing where the OpenFileDialog would try to open an invalid file path. --- MCROrganizer/Core/Utils/RunTemplateManager.cs | 4 ++-- MCROrganizer/Core/View/MCROrganizerControl.xaml | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/MCROrganizer/Core/Utils/RunTemplateManager.cs b/MCROrganizer/Core/Utils/RunTemplateManager.cs index 934101b..11e1ff8 100644 --- a/MCROrganizer/Core/Utils/RunTemplateManager.cs +++ b/MCROrganizer/Core/Utils/RunTemplateManager.cs @@ -93,10 +93,10 @@ public Collection LoadData(ICollection entitiesToClearOnLoad, Boolea { fileBrowserDialog = new OpenFileDialog() { - InitialDirectory = PathUtils.ImagePath, Filter = PathUtils.MCROFilter, DefaultExt = PathUtils.Extension, - AddExtension = true + AddExtension = true, + RestoreDirectory = true, }; if (fileBrowserDialog.ShowDialog() != DialogResult.OK) diff --git a/MCROrganizer/Core/View/MCROrganizerControl.xaml b/MCROrganizer/Core/View/MCROrganizerControl.xaml index 2408649..7eb9ee1 100644 --- a/MCROrganizer/Core/View/MCROrganizerControl.xaml +++ b/MCROrganizer/Core/View/MCROrganizerControl.xaml @@ -8,7 +8,7 @@ xmlns:custom="clr-namespace:MCROrganizer.Core.CustomControls" xmlns:attached="clr-namespace:MCROrganizer.Core.Utils" mc:Ignorable="d" - Background="Transparent" + Background="Gray" Height="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:MainWindow}}, Path=ActualHeight}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" @@ -18,10 +18,10 @@ - + - +