Try this:
modify these line in '/bin/gmoccapy':
To this:
Code:
# If button exit is clicked, press emergency button before closing the application
def on_btn_exit_clicked(self, widget, data=None):
# if 'Use unlock code' option is activated on the settings/hardware tab we ask for the code using the system.dialog
if self.widgets.rbt_use_unlock.get_active():
if self.dialogs.system_dialog(self):
self.widgets.window1.destroy()
else:
self.widgets.window1.destroy()
Note, standard unlock code is "123", which is displayed in the tool tip text when the mouse hovers over the settings button so you might want to change it to something else. To do that open the .pref file in the machine config folder and find the line 'unlock_code':