diff --git a/FoliCon/Modules/Util.cs b/FoliCon/Modules/Util.cs index 3aa5a8f8..cbf61fc6 100644 --- a/FoliCon/Modules/Util.cs +++ b/FoliCon/Modules/Util.cs @@ -86,11 +86,9 @@ public static async void CheckForUpdate(bool onlyShowIfUpdateAvailable = false) /// if path is a URL it opens url in default browser, if path is File Or folder path it will be started. public static void StartProcess(string path) { - Process.Start(new ProcessStartInfo + Process.Start(new ProcessStartInfo(path) { - FileName = path, - UseShellExecute = true, - Verb = "open" + UseShellExecute = true }); } @@ -486,9 +484,10 @@ public static void BuildFolderIco(string iconMode, string filmFolderPath, string IconOverlay.Faelpessoal => StaTask.Start(() => new PosterIconFaelpessoal(new PosterIcon( filmFolderPath, rating, ratingVisibility, mockupVisibility, mediaTitle)).RenderToBitmap()), - IconOverlay.FaelpessoalHorizontal => StaTask.Start(() => new PosterIconFaelpessoalHorizontal(new PosterIcon( - filmFolderPath, rating, - ratingVisibility, mockupVisibility, mediaTitle)).RenderToBitmap()), + IconOverlay.FaelpessoalHorizontal => StaTask.Start(() => new PosterIconFaelpessoalHorizontal( + new PosterIcon( + filmFolderPath, rating, + ratingVisibility, mockupVisibility, mediaTitle)).RenderToBitmap()), _ => StaTask.Start(() => new Views.PosterIcon(new PosterIcon(filmFolderPath, rating, ratingVisibility, mockupVisibility)) .RenderToBitmap()) @@ -627,7 +626,7 @@ public static (string ID, string MediaType) ReadMediaInfo(string folderPath) public static int GetResultCount(bool isPickedById, dynamic result, string searchMode) { - return isPickedById ? result != null ? 1 : 0 : searchMode == "Game" ? result.Length : result.TotalResults; + return isPickedById ? result != null ? 1 : 0 : searchMode == "Game" ? result.Length : result.TotalResults; } } } \ No newline at end of file diff --git a/FoliCon/Views/AboutBox.xaml b/FoliCon/Views/AboutBox.xaml index ea2661d8..d2269750 100644 --- a/FoliCon/Views/AboutBox.xaml +++ b/FoliCon/Views/AboutBox.xaml @@ -37,11 +37,11 @@ - - - - - + + + + + diff --git a/FoliCon/Views/MainWindow.xaml b/FoliCon/Views/MainWindow.xaml index fcfc17fc..03dad1b3 100644 --- a/FoliCon/Views/MainWindow.xaml +++ b/FoliCon/Views/MainWindow.xaml @@ -8,7 +8,6 @@ xmlns:langs="clr-namespace:FoliCon.Properties.Langs" xmlns:ex="clr-namespace:FoliCon.Modules.LangExtension" xmlns:models="clr-namespace:FoliCon.Models" - xmlns:i="http://schemas.microsoft.com/xaml/behaviors" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" prism:ViewModelLocator.AutoWireViewModel="True" @@ -85,8 +84,14 @@ ToolTip="{ex:Lang Key={x:Static langs:LangKeys.HaveIconsTooltip}}" Command="{Binding CustomIconsCommand}" /> - - + + + + + + + + @@ -103,11 +108,11 @@ - - - - - + + + + + diff --git a/FoliCon/Views/SearchResult.xaml b/FoliCon/Views/SearchResult.xaml index 61dfd312..e6e7364f 100644 --- a/FoliCon/Views/SearchResult.xaml +++ b/FoliCon/Views/SearchResult.xaml @@ -113,8 +113,14 @@ Text="{Binding Path=SelectedItem.(models:ListItem.Overview), ElementName=ListViewResult}" TextWrapping="Wrap" FontSize="{Binding Value, ElementName=SizeSlider}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" IsReadOnly="True" VerticalContentAlignment="Top" /> - + + + diff --git a/FoliCon/Views/SearchResult.xaml.cs b/FoliCon/Views/SearchResult.xaml.cs index fe5ddbf0..ddbd456c 100644 --- a/FoliCon/Views/SearchResult.xaml.cs +++ b/FoliCon/Views/SearchResult.xaml.cs @@ -70,15 +70,5 @@ private void Sort(string sortBy, ListSortDirection direction) dataView.SortDescriptions.Add(sd); dataView.Refresh(); } - - private void ListViewResult_OnMouseDoubleClick(object sender, MouseButtonEventArgs e) - { - var dataContext = ((FrameworkElement)e.OriginalSource).DataContext; - - if (dataContext is ListItem) - { - MessageBox.Show("Item's Double Click handled!"); - } - } } } \ No newline at end of file