Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions src/MpvNet/App.cs
Original file line number Diff line number Diff line change
Expand Up @@ -179,16 +179,16 @@ public void ApplyShowMenuFix()
if (Settings.ShowMenuFixApplied)
return;

if (File.Exists(InputConf.Path))
{
string content = File.ReadAllText(InputConf.Path);
if (!File.Exists(InputConf.Path))
return;

if (!content.Contains("script-message mpvnet show-menu") &&
!content.Contains("script-message-to mpvnet show-menu"))
string content = File.ReadAllText(InputConf.Path);

File.WriteAllText(InputConf.Path, BR + content.Trim() + BR +
"MBTN_Right script-message-to mpvnet show-menu" + BR);
}
if (!content.Contains("script-message mpvnet show-menu") &&
!content.Contains("script-message-to mpvnet show-menu"))

File.WriteAllText(InputConf.Path, BR + content.Trim() + BR +
"MBTN_Right script-message-to mpvnet show-menu" + BR);

Settings.ShowMenuFixApplied = true;
}
Expand Down