'On click OK button update the plugins settings and then destroy'

def on_click_ok(self, button=None):

    if (self.plugin_manager is not None):
        self.plugin_manager.updateSettings(self.plugin_settings)
    self.destroy()
