Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
stax76 committed Jul 15, 2024
1 parent 3caf4f2 commit e6defd3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
# v7.1.1.1 Beta (????-??-??)

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


# v7.1.1.0 (2024-02-03)

Expand Down
9 changes: 8 additions & 1 deletion src/MpvNet.Windows/GuiCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
using MpvNet.Windows.WPF.MsgBox;
using MpvNet.Windows.Help;
using MpvNet.Help;
using System;

namespace MpvNet;

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

if (!File.Exists(file))
{
string msg = $"{args[0]} does not exist. Would you like to create it?";

if (Msg.ShowQuestion(msg) == MessageBoxResult.OK)
File.WriteAllText(file, "");
}

if (File.Exists(file))
ProcessHelp.ShellExecute(WinApiHelp.GetAppPathForExtension("txt"), "\"" + file + "\"");
}
Expand Down

0 comments on commit e6defd3

Please sign in to comment.