This commit is contained in:
stax76
2018-05-28 22:18:34 +02:00
parent 0cf38669a0
commit 5e3e734245
3 changed files with 29 additions and 13 deletions

View File

@@ -100,14 +100,19 @@ namespace mpvnet
CursorHelp.Show();
}
private string LastHistory;
private void mpv_PlaybackRestart()
{
var fn = mpv.GetStringProp("filename");
BeginInvoke(new Action(() => { Text = fn + " - mpv.net " + Application.ProductVersion; }));
var fp = Folder.AppDataRoaming + "mpv\\history.txt";
if (File.Exists(fp))
if (LastHistory != fn && File.Exists(fp))
{
File.AppendAllText(fp, DateTime.Now.ToString() + " " + Path.GetFileNameWithoutExtension(fn) + BR);
LastHistory = fn;
}
}
private void CM_Popup(object sender, EventArgs e)