Skip to content

Commit e6defd3

Browse files
committed
1 parent 3caf4f2 commit e6defd3

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

docs/changelog.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
# v7.1.1.1 Beta (????-??-??)
33

44
- Korean, Russian and Turkish translation added, Japanese translation fixed. Thanks to the translation team!
5-
- Auto build update.
5+
- Action/Workflow/Auto build fix and update.
66
- Full support for select.lua which is a new simple command palette script embedded into mpv/libmpv.
77
In the context menu select.lua features can be found under 'View > On Screen Menu'.
88
https://github.com/mpv-player/mpv/blob/master/player/lua/select.lua
99
- The helper script 'Tools\update-mpv-and-libmpv.ps1' no longer uses command line arguments,
1010
it uses now the Path environment variable to find mpv and mpv.net.
11-
- Actions/Workflow/Auto builds have been fixed.
11+
1212

1313
# v7.1.1.0 (2024-02-03)
1414

src/MpvNet.Windows/GuiCommand.cs

+8-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
using MpvNet.Windows.WPF.MsgBox;
1515
using MpvNet.Windows.Help;
1616
using MpvNet.Help;
17-
using System;
1817

1918
namespace MpvNet;
2019

@@ -118,6 +117,14 @@ void EditCongFile(IList<string> args)
118117
{
119118
string file = Player.ConfigFolder + args[0];
120119

120+
if (!File.Exists(file))
121+
{
122+
string msg = $"{args[0]} does not exist. Would you like to create it?";
123+
124+
if (Msg.ShowQuestion(msg) == MessageBoxResult.OK)
125+
File.WriteAllText(file, "");
126+
}
127+
121128
if (File.Exists(file))
122129
ProcessHelp.ShellExecute(WinApiHelp.GetAppPathForExtension("txt"), "\"" + file + "\"");
123130
}

0 commit comments

Comments
 (0)