refill() on show

This commit is contained in:
Nikolaus Gullotta 2019-04-05 09:32:07 -05:00
parent 0602023fc4
commit 26ccfd29a3
2 changed files with 8 additions and 0 deletions

View file

@ -82,6 +82,8 @@ MixerSnapshotDialog::MixerSnapshotDialog(Session* s)
global_display.signal_button_press_event().connect(sigc::bind(sigc::mem_fun(*this, &MixerSnapshotDialog::button_press), true), false);
local_display.signal_button_press_event().connect(sigc::bind(sigc::mem_fun(*this, &MixerSnapshotDialog::button_press), false), false);
signal_show().connect(sigc::mem_fun(*this, &MixerSnapshotDialog::window_opened));
set_session(s);
}
@ -108,6 +110,11 @@ void MixerSnapshotDialog::ensure_directory(bool global)
}
}
void MixerSnapshotDialog::window_opened()
{
refill();
}
void MixerSnapshotDialog::display_drag_data_received(const Glib::RefPtr<Gdk::DragContext>& context, int x, int y, const Gtk::SelectionData& data, guint info, guint time, bool global)
{
if (data.get_target() != "string") {

View file

@ -62,6 +62,7 @@ class MixerSnapshotDialog : public ArdourWindow
void popup_context_menu(int, int64_t, std::string);
bool button_press(GdkEventButton*, bool);
void window_opened();
void fav_cell_action(const std::string&, bool);