tastudio macros: don't die from colons in paths when saving to file
disable macros menu items when there's no selection
This commit is contained in:
parent
6580c2abef
commit
e8103a1c53
|
@ -295,7 +295,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
{
|
||||
return PathManager.MakeAbsolutePath(Path.Combine(
|
||||
Global.Config.PathEntries["Global", "Macros"].Path,
|
||||
Global.Game.Name), null);
|
||||
PathManager.FilesystemSafeName(Global.Game)), null);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
|
|
@ -25,6 +25,10 @@ namespace BizHawk.Client.EmuHawk
|
|||
SaveTASMenuItem.Enabled =
|
||||
!string.IsNullOrWhiteSpace(CurrentTasMovie.Filename) &&
|
||||
(CurrentTasMovie.Filename != DefaultTasProjName());
|
||||
|
||||
saveSelectionToMacroToolStripMenuItem.Enabled =
|
||||
placeMacroAtSelectionToolStripMenuItem.Enabled =
|
||||
TasView.AnyRowsSelected;
|
||||
}
|
||||
|
||||
private void RecentSubMenu_DropDownOpened(object sender, EventArgs e)
|
||||
|
|
Loading…
Reference in New Issue