1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 19:42:26 +01:00

Report macro replay in the mode line.

This commit is contained in:
Kris Maglione
2008-09-14 20:45:04 +00:00
parent 33f530d94a
commit 7e610e5e8b

View File

@@ -61,11 +61,14 @@ liberator.modes = (function () //{{{
if (extended & liberator.modes.MENU) // TODO: desirable?
ext += " (menu)";
ext += " --";
// when recording a macro
var macromode = "";
if (liberator.modes.isRecording)
ext += "recording";
macromode = "recording";
else if (liberator.modes.isReplaying)
macromode = "replaying";
ext += " --" + macromode;
switch (main)
{
@@ -86,10 +89,7 @@ liberator.modes = (function () //{{{
case liberator.modes.CUSTOM:
return "-- " + liberator.plugins.mode + ext;
default: // NORMAL mode
if (liberator.modes.isRecording)
return "recording";
else
return "";
return macromode;
}
}