It works!
Did simple test that saved some of the web-dialog settings.
def activate
@@check = "start"
end
def deactivate(view)
@@check = "end"
end
def push_frame(dialog,data)
params = query_to_hash(data)
################
## START ##
################
if @@check == "start"
@@check = "no"
saved = Sketchup.read_default("canvas_panel", "store_dlg")
UI.messagebox saved #Will prompt last selected value before closing from web-dialog
end
################
## END ##
################
if @@check == "end"
@@check = "no"
inp = params['sel_ip'].to_s #This is value from web-dialog
Sketchup.write_default("canvas_panel", "store_dlg", inp)
end
end
Need to do what TIG suggested which was to make array into string to store multiple web-dialog settings. After that will have to use that data to make web-dialog use the settings last used when it was last closed.