move clear presets to the panel popup menu
This commit is contained in:
@@ -514,6 +514,18 @@ void NodePanelBrushPreset::init()
|
||||
break;
|
||||
case 3: // upload
|
||||
break;
|
||||
case 4: // clear presets
|
||||
{
|
||||
auto mb = App::I->message_box("Clear Presets", "Do you want to remove all the Brush Presets?", true);
|
||||
mb->btn_ok->m_text->set_text("Yes");
|
||||
mb->btn_cancel->m_text->set_text("No");
|
||||
mb->btn_ok->on_click = mb->on_submit = [this, mb](Node*) {
|
||||
App::I->presets->clear_brushes();
|
||||
App::I->presets->save();
|
||||
mb->destroy();
|
||||
};
|
||||
break;
|
||||
}
|
||||
}
|
||||
popup->destroy();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user