I think it would be better if it would be this:
when ("Show Desktop" is clicked): if (all windows are minimized): restore last window state; else: minimize all windows;
i.e., if you have 2 windows running and 1 opened, click show desktop to show the desktop, click it again and you have your single window back.
I think it would be better if it would be this:
when ("Show Desktop" is clicked):
if (all windows are minimized):
restore last window state;
else:
minimize all windows;
i.e., if you have 2 windows running and 1 opened, click show desktop to show the desktop, click it again and you have your single window back.