From 2583b38a17c8e2814fbb4156f836839a93dd5030 Mon Sep 17 00:00:00 2001 From: Yeechan Lu Date: Mon, 24 Mar 2014 01:10:50 +0800 Subject: [PATCH] Fix a file missing bug --- Wox/Msg.xaml.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Wox/Msg.xaml.cs b/Wox/Msg.xaml.cs index f244e602af..bf11f2f9a5 100644 --- a/Wox/Msg.xaml.cs +++ b/Wox/Msg.xaml.cs @@ -41,7 +41,7 @@ namespace Wox Storyboard.SetTargetProperty(fadeOutAnimation, new PropertyPath(TopProperty)); fadeOutStoryboard.Children.Add(fadeOutAnimation); - imgClose.Source = new BitmapImage(new Uri(System.IO.Path.GetDirectoryName(System.Windows.Forms.Application.ExecutablePath) + "\\Images\\close.png")); + imgClose.Source = new BitmapImage(new Uri(System.IO.Path.Combine(System.IO.Path.GetDirectoryName(System.Windows.Forms.Application.ExecutablePath), "Images\\close.png"))); imgClose.MouseUp += imgClose_MouseUp; } @@ -65,7 +65,7 @@ namespace Wox tbSubTitle.Text = subTitle; if (!File.Exists(icopath)) { - icopath = System.IO.Path.GetDirectoryName(System.Windows.Forms.Application.ExecutablePath) + "Images\\app.png"; + icopath = System.IO.Path.Combine(System.IO.Path.GetDirectoryName(System.Windows.Forms.Application.ExecutablePath), "Images\\app.png"); } imgIco.Source = new BitmapImage(new Uri(icopath)); Show();