A toolbar with 2 checkbuttons, one for the status of vray DR, one for the status of Autosave. simple enough, see below. problem is i can't seem to get it to unRegisterDialogBar at any point so that i can destroy the dialog before recreating it. is there some magic syntax that i'm missing?

(
--needs to be global for the callback to be usable?!
global g_roll_CheckDRSave

on g_roll_CheckDRSave open do updateChkButtons()
on CheckDR changed val do renderers.current.system_distributedRender = CheckDR.checked
on CheckAsave changed val do autosave.enable = CheckAsave.checked