add ppbr info data

This commit is contained in:
2019-09-19 10:14:31 +02:00
parent 814fd76292
commit 4d788bb174
7 changed files with 45 additions and 12 deletions

View File

@@ -610,7 +610,12 @@ void App::dialog_ppbr_export()
App::I->pick_file_save({ "ppbr" }, [this, dialog] (std::string path) {
std::thread([this, path, dialog] {
BT_SetTerminate();
presets->export_ppbr(path, dialog->m_header_image);
NodePanelBrushPreset::PPBRInfo info;
info.author = dialog->txt_author->m_text;
info.url = dialog->txt_url->m_text;
info.email = dialog->txt_email->m_text;
info.descr = dialog->txt_descr->m_text;
presets->export_ppbr(path, info);
dialog->destroy();
App::I->message_box("Export PPBR", "Brushes exported to:\n" + path);
}).detach();