I have added the following to Main.sublime-menu but it is not working. The entry shows up in the Menu and the checkbox in the menu item toggles when I click on it - however it is not changing the behavior. Does anyone have any tips or know what I am doing wrong or is this a bug?

Fantastic! Thanks quarnster. Works perfectly with last line changed from "s.save_settings" to "sublime.save_settings".

However - is there any way to also have the menu show a checkbox regarding the state of a global setting or from the return value of a plugin?. I tried returning true or false from the ToggleGlobalSettingCommand - but it doesn't affect the state of the checkbox. Otherwise I have no way to know if I am turning the setting on or off, and I would have to create two buttons on the Menu - one for "Remember Opened Files - Off" and "Remember Opened Files - On".