Skip to content
Snippets Groups Projects
Commit 34794125 authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Add file open to add source

parent 2baa4c8b
Branches
Tags
1 merge request!316Resolves #343 GUI and Frame Refactor
Pipeline #28131 passed
......@@ -74,6 +74,15 @@ void AddSourceWindow::rebuild() {
}
new Label(this, "Files", "sans-bold");
auto *filebuttons = new Widget(this);
filebuttons->setLayout(new BoxLayout(Orientation::Horizontal, Alignment::Middle, 0, 4));
button = new Button(filebuttons, "", ENTYPO_ICON_FOLDER);
button->setCallback([this]() {
ctrl_->add(file_dialog(
{ {"ftl", "FTL Captures"} }, true));
close();
});
}
void AddSourceWindow::close() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment