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(
|
return PathManager.MakeAbsolutePath(Path.Combine(
|
||||||
Global.Config.PathEntries["Global", "Macros"].Path,
|
Global.Config.PathEntries["Global", "Macros"].Path,
|
||||||
Global.Game.Name), null);
|
PathManager.FilesystemSafeName(Global.Game)), null);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
|
@ -25,6 +25,10 @@ namespace BizHawk.Client.EmuHawk
|
||||||
SaveTASMenuItem.Enabled =
|
SaveTASMenuItem.Enabled =
|
||||||
!string.IsNullOrWhiteSpace(CurrentTasMovie.Filename) &&
|
!string.IsNullOrWhiteSpace(CurrentTasMovie.Filename) &&
|
||||||
(CurrentTasMovie.Filename != DefaultTasProjName());
|
(CurrentTasMovie.Filename != DefaultTasProjName());
|
||||||
|
|
||||||
|
saveSelectionToMacroToolStripMenuItem.Enabled =
|
||||||
|
placeMacroAtSelectionToolStripMenuItem.Enabled =
|
||||||
|
TasView.AnyRowsSelected;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void RecentSubMenu_DropDownOpened(object sender, EventArgs e)
|
private void RecentSubMenu_DropDownOpened(object sender, EventArgs e)
|
||||||
|
|
Loading…
Reference in New Issue