Skip to main content

add_example_widget

Function add_example_widget 

Source
pub fn add_example_widget(widgets_root: &Path) -> Result<(), String>
Expand description

Adds the example widget to the widgets folder once. A hidden marker file records that it was added, so an uninstalled example stays uninstalled and an edited copy is never replaced. Development builds only.