remember when someone deletes an example
Dependencies
- [2]
YV2GBDNWpreserve settings across restart - [3]
MJ6KKFVTgive example panes a name - [4]
OOSUBWKXsubject people to a tutorial - [*]
R5QXEHUIsomebody stop me - [*]
RK2ASPN7add lots of buttons to the toolbar
Change contents
- file addition: 0113-Deleted_example_panes[6.2]
Deleted_example_panes = {} -- array of names of example panes - file addition: 0112-load_example_panes[6.2]
load_example_panes = function()for _,ex in ipairs(Example_panes) doif Deleted_example_panes[ex.name] == nil thentable.insert(Panes, example_pane(ex.name, ex.lines))endendend - edit in 0099-on.load_settings at line 10
Deleted_example_panes = settings.deleted_example_panes - replacement in 0098-on.save_settings at line 5
background_color = Background_colorbackground_color = Background_color,deleted_example_panes = Deleted_example_panes, - edit in 0078-Example_panes at line 3
-- Be careful not to rename example panes; that will cause them to pop up again and annoy people who've already deleted them.-- If you delete a name, be careful not to reuse it in future. - replacement in 0077-example_pane at line 3
result.name = nameresult.example_name = name - edit in 0076-delete_pane_button at line 19[7.350][7.350]
if Current_pane.example_name thenDeleted_example_panes[Current_pane.example_name] = trueend