Skip to content

Commit

Permalink
Improved copyright file detection
Browse files Browse the repository at this point in the history
  • Loading branch information
VahidN committed Apr 9, 2017
1 parent ade89de commit 542441f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions PersianBingCalendar/Core/BingWallpaper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ public static void SetTodayWallpapaer()
TodayColor = Color.DarkRed,
CopyrightFontName = AppConfig.CopyrightFontName,
CopyrightFontSize = AppConfig.CopyrightFontSize,
CalendarFontFileName= AppConfig.CalendarFontFileName,
CalendarFontSize= AppConfig.CalendarFontSize,
CalendarFontFileName = AppConfig.CalendarFontFileName,
CalendarFontSize = AppConfig.CalendarFontSize,
HolidaysFontSize = AppConfig.HolidaysFontSize,
ShowPastHolidays = AppConfig.ShowPastHolidays
})
Expand Down Expand Up @@ -85,7 +85,7 @@ private static LastDownalodResult getImage(string dir)

if (!File.Exists(xmlFile))
{
xmlFile = $"{Path.GetFileName(image).Split('_').First()}.xml";
xmlFile = Path.Combine(Path.GetDirectoryName(image), $"{Path.GetFileName(image).Split('_').First()}.xml");
}

if (File.Exists(xmlFile))
Expand Down

0 comments on commit 542441f

Please sign in to comment.