Fix showing incorrect timestamps in About dialog of Store version
This commit is contained in:
@@ -1,4 +1,6 @@
|
|||||||
|
|
||||||
|
- Fix showing incorrect timestamps in About dialog of Store version.
|
||||||
|
|
||||||
5.7.0.0 Stable (2022-03-09)
|
5.7.0.0 Stable (2022-03-09)
|
||||||
|
|
||||||
- Improved title and chapter menu for Blu-Rays.
|
- Improved title and chapter menu for Blu-Rays.
|
||||||
|
|||||||
@@ -130,8 +130,21 @@ namespace mpvnet
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static string Version => "Copyright (C) 2000-2022 mpv.net/mpv/mplayer\n" +
|
public static string Version => "Copyright (C) 2000-2022 mpv.net/mpv/mplayer\n" +
|
||||||
$"mpv.net {Application.ProductVersion} ({File.GetLastWriteTime(Application.ExecutablePath).ToShortDateString()})\n" +
|
$"mpv.net {Application.ProductVersion}" + GetLastWriteTime(Application.ExecutablePath) + "\n" +
|
||||||
$"{Core.GetPropertyString("mpv-version")} ({File.GetLastWriteTime(Folder.Startup + "mpv-2.dll").ToShortDateString()})\nffmpeg {Core.GetPropertyString("ffmpeg-version")}\nMediaInfo {FileVersionInfo.GetVersionInfo(Path.Combine(Application.StartupPath, "MediaInfo.dll")).FileVersion} ({File.GetLastWriteTime(Path.Combine(Application.StartupPath , "MediaInfo.dll")).ToShortDateString()})\nGPL v2 License";
|
$"{Core.GetPropertyString("mpv-version")}" + GetLastWriteTime(Folder.Startup + "mpv-2.dll") + "\n" +
|
||||||
|
$"ffmpeg {Core.GetPropertyString("ffmpeg-version")}\n" +
|
||||||
|
$"MediaInfo {FileVersionInfo.GetVersionInfo(Path.Combine(Application.StartupPath, "MediaInfo.dll")).FileVersion}" +
|
||||||
|
GetLastWriteTime(Path.Combine(Application.StartupPath , "MediaInfo.dll")) + "\nGPL v2 License";
|
||||||
|
|
||||||
|
static string GetLastWriteTime(string path)
|
||||||
|
{
|
||||||
|
if (IsStoreVrsion)
|
||||||
|
return "";
|
||||||
|
|
||||||
|
return $" ({File.GetLastWriteTime(path).ToShortDateString()})";
|
||||||
|
}
|
||||||
|
|
||||||
|
static bool IsStoreVrsion => Application.StartupPath.Contains("FrankSkare.mpv.net");
|
||||||
|
|
||||||
public static void ShowException(object obj)
|
public static void ShowException(object obj)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user