move slider when new frame is added

This commit is contained in:
2019-09-23 10:16:44 +02:00
parent d76f9b5847
commit c0b57b6662

View File

@@ -1347,12 +1347,13 @@ void App::initLayout()
frame_text->set_text(str); frame_text->set_text(str);
} }
}; };
} if (auto btn_add = timeline->find<NodeButtonCustom>("btn-add"))
if (auto btn_add = timeline->find<NodeButtonCustom>("btn-add")) {
{ btn_add->on_click = [this, slider] (Node*) {
btn_add->on_click = [this] (Node*) { layers->add_layer(true, true);
layers->add_layer(true, true); slider->set_value(1.f, true);
}; };
}
} }
} }