mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-01 11:27:45 +01:00
make undo and redo actions insensitive when appropriate.
This obviously affects menu items and other proxies for these actions
This commit is contained in:
parent
e8ace9be2b
commit
4b9baae18f
1 changed files with 4 additions and 0 deletions
|
|
@ -3338,8 +3338,10 @@ Editor::history_changed ()
|
|||
if (undo_action && _session) {
|
||||
if (_session->undo_depth() == 0) {
|
||||
label = S_("Command|Undo");
|
||||
undo_action->set_sensitive (false);
|
||||
} else {
|
||||
label = string_compose(S_("Command|Undo (%1)"), _session->next_undo());
|
||||
undo_action->set_sensitive (true);
|
||||
}
|
||||
undo_action->property_label() = label;
|
||||
}
|
||||
|
|
@ -3347,8 +3349,10 @@ Editor::history_changed ()
|
|||
if (redo_action && _session) {
|
||||
if (_session->redo_depth() == 0) {
|
||||
label = _("Redo");
|
||||
redo_action->set_sensitive (false);
|
||||
} else {
|
||||
label = string_compose(_("Redo (%1)"), _session->next_redo());
|
||||
redo_action->set_sensitive (true);
|
||||
}
|
||||
redo_action->property_label() = label;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue