Lua console - account for separators when doing Duplicate Script
This commit is contained in:
parent
358f1dfd33
commit
ade678487a
|
@ -954,7 +954,14 @@ namespace BizHawk.Client.EmuHawk
|
|||
{
|
||||
if (LuaListView.SelectedRows.Any())
|
||||
{
|
||||
var script = SelectedFiles.First();
|
||||
var script = SelectedItems.First();
|
||||
|
||||
if (script.IsSeparator)
|
||||
{
|
||||
LuaImp.ScriptList.Add(LuaFile.SeparatorInstance);
|
||||
UpdateDialog();
|
||||
return;
|
||||
}
|
||||
|
||||
var sfd = new SaveFileDialog
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue