uosc menu syntax fix

This commit is contained in:
stax76
2023-11-06 09:17:53 +01:00
parent 684e103e12
commit 9ec518a952

View File

@@ -7,7 +7,6 @@ namespace MpvNet;
public class InputConf public class InputConf
{ {
string? _content; string? _content;
bool? _hasMenu;
public InputConf(string path) { Path = path; } public InputConf(string path) { Path = path; }
@@ -18,8 +17,8 @@ public class InputConf
get => _content ??= FileHelp.ReadTextFile(Path); get => _content ??= FileHelp.ReadTextFile(Path);
set => _content = value; set => _content = value;
} }
public bool HasMenu => _hasMenu ??= Content.Contains("#menu:"); public bool HasMenu => Content.Contains("#menu:") || Content.Contains("#! ");
public (List<Binding> menuBindings, List<Binding>? confBindings) GetBindings() public (List<Binding> menuBindings, List<Binding>? confBindings) GetBindings()
{ {