13
0

Fix External Sync Toggle Button

This commit is contained in:
Robin Gareus 2024-11-14 06:58:08 +01:00
parent a53b99b307
commit da0f1728ed
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -451,7 +451,7 @@ ApplicationBar::ui_actions_ready ()
Glib::RefPtr<Action> act; Glib::RefPtr<Action> act;
ActionManager::get_action (X_("Transport"), X_("ToggleExternalSync")); act = ActionManager::get_action (X_("Transport"), X_("ToggleExternalSync"));
_sync_button.set_related_action (act); _sync_button.set_related_action (act);
act = ActionManager::get_action ("Transport", "TogglePunchIn"); act = ActionManager::get_action ("Transport", "TogglePunchIn");
@ -947,6 +947,7 @@ ApplicationBar::parameter_changed (std::string p)
if (!_session->config.get_external_sync()) { if (!_session->config.get_external_sync()) {
_sync_button.set_text (S_("SyncSource|Int.")); _sync_button.set_text (S_("SyncSource|Int."));
} else { } else {
_sync_button.set_text (TransportMasterManager::instance().current()->display_name());
} }
} else if (p == "sync-source") { } else if (p == "sync-source") {
if (_session) { if (_session) {