mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-21 06:06:25 +01:00
fix latency-measurement dialog back-button.
This commit is contained in:
parent
c18826b858
commit
1a68b43ee8
1 changed files with 3 additions and 7 deletions
|
|
@ -544,9 +544,12 @@ EngineControl::enable_latency_tab ()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
lm_back_button_signal.disconnect();
|
||||||
if (_measure_midi) {
|
if (_measure_midi) {
|
||||||
|
lm_back_button_signal = lm_back_button.signal_clicked().connect (sigc::bind (sigc::mem_fun (notebook, &Gtk::Notebook::set_current_page), midi_tab));
|
||||||
lm_preamble.set_markup (_(""));
|
lm_preamble.set_markup (_(""));
|
||||||
} else {
|
} else {
|
||||||
|
lm_back_button_signal = lm_back_button.signal_clicked().connect (sigc::bind (sigc::mem_fun (notebook, &Gtk::Notebook::set_current_page), 0));
|
||||||
lm_preamble.set_markup (_("<span weight=\"bold\">Turn down the volume on your audio equipment to a very low level.</span>"));
|
lm_preamble.set_markup (_("<span weight=\"bold\">Turn down the volume on your audio equipment to a very low level.</span>"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1955,13 +1958,6 @@ EngineControl::start_latency_detection ()
|
||||||
lm_output_channel_combo.set_sensitive (false);
|
lm_output_channel_combo.set_sensitive (false);
|
||||||
lm_running = true;
|
lm_running = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
lm_back_button_signal.disconnect();
|
|
||||||
if (_measure_midi) {
|
|
||||||
lm_back_button_signal = lm_back_button.signal_clicked().connect (sigc::bind (sigc::mem_fun (notebook, &Gtk::Notebook::set_current_page), midi_tab));
|
|
||||||
} else {
|
|
||||||
lm_back_button_signal = lm_back_button.signal_clicked().connect (sigc::bind (sigc::mem_fun (notebook, &Gtk::Notebook::set_current_page), 0));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue