conf editor bug fix
This commit is contained in:
@@ -82,7 +82,7 @@ public class ConfParser
|
||||
{
|
||||
public static List<ConfSection> Parse(string content)
|
||||
{
|
||||
string[] lines = content.Split(BR.ToCharArray(), StringSplitOptions.None);
|
||||
string[] lines = content.Split(new[] { "\r\n" }, StringSplitOptions.None);
|
||||
var sections = new List<ConfSection>();
|
||||
ConfSection? currentGroup = null;
|
||||
|
||||
|
||||
@@ -48,13 +48,13 @@ public class GuiCommand
|
||||
["show-command-palette"] = args => ShowCommandPalette(),
|
||||
|
||||
|
||||
// backward compatibility
|
||||
["show-info"] = args => ShowMediaInfo(new[] { "osd" }), // backward compatibility
|
||||
["playlist-random"] = args => PlaylistRandom(), // backward compatibility
|
||||
["quick-bookmark"] = args => QuickBookmark(), // backward compatibility
|
||||
["show-commands"] = args => ShowCommands(), // backward compatibility
|
||||
["show-history"] = args => ShowHistory(), // backward compatibility
|
||||
["show-playlist"] = args => ShowPlaylist(), // backward compatibility
|
||||
// deprecated
|
||||
["show-info"] = args => ShowMediaInfo(new[] { "osd" }), // deprecated
|
||||
["playlist-random"] = args => PlaylistRandom(), // deprecated
|
||||
["quick-bookmark"] = args => QuickBookmark(), // deprecated
|
||||
["show-commands"] = args => ShowCommands(), // deprecated
|
||||
["show-history"] = args => ShowHistory(), // deprecated
|
||||
["show-playlist"] = args => ShowPlaylist(), // deprecated
|
||||
};
|
||||
|
||||
public void ShowDialog(Type winType)
|
||||
@@ -276,27 +276,27 @@ public class GuiCommand
|
||||
});
|
||||
}
|
||||
|
||||
// backward compatibility
|
||||
// deprecated
|
||||
public void PlaylistRandom() =>
|
||||
Msg.ShowInfo("This feature was moved to a user script,\nwhich can be found here:\n\n" +
|
||||
"https://github.com/stax76/mpv-scripts/blob/main/misc.lua");
|
||||
|
||||
// backward compatibility
|
||||
// deprecated
|
||||
public void QuickBookmark() =>
|
||||
Msg.ShowInfo("This feature was moved to a user script,\nwhich can be found here:\n\n" +
|
||||
"https://github.com/stax76/mpv-scripts/blob/main/misc.lua");
|
||||
|
||||
// backward compatibility
|
||||
// deprecated
|
||||
public void ShowCommands() =>
|
||||
Msg.ShowInfo("This feature was moved to a user script,\nwhich can be found here:\n\n" +
|
||||
"https://github.com/stax76/mpv-scripts#command_palette");
|
||||
|
||||
// backward compatibility
|
||||
// deprecated
|
||||
public void ShowHistory() =>
|
||||
Msg.ShowInfo("This feature was moved to a user script,\nwhich can be found here:\n\n" +
|
||||
"https://github.com/stax76/mpv-scripts/blob/main/history.lua");
|
||||
|
||||
// backward compatibility
|
||||
// deprecated
|
||||
public void ShowPlaylist() =>
|
||||
Msg.ShowInfo("This feature was moved to a user script,\nwhich can be found here:\n\n" +
|
||||
"https://github.com/stax76/mpv-scripts#command_palette");
|
||||
|
||||
@@ -459,7 +459,7 @@ public partial class ConfWindow : Window, INotifyPropertyChanged
|
||||
node.IsSelected = false;
|
||||
|
||||
foreach (var it in node.Children)
|
||||
SelectNodeFromSearchText(it);
|
||||
UnselectNode(it);
|
||||
}
|
||||
|
||||
void ExpandNode(NodeViewModel node)
|
||||
@@ -467,7 +467,7 @@ public partial class ConfWindow : Window, INotifyPropertyChanged
|
||||
node.IsExpanded = true;
|
||||
|
||||
foreach (var it in node.Children)
|
||||
SelectNodeFromSearchText(it);
|
||||
ExpandNode(it);
|
||||
}
|
||||
|
||||
[RelayCommand] void ShowMpvNetSpecificSettings() => SearchControl.Text = "mpv.net";
|
||||
|
||||
Reference in New Issue
Block a user