Instance settings can't get restored (rqt)
Hey guys,
I am writing a rqt plugin in python and want to restore my settings (which check box was checked for example) through instance settings like a lot of people did in their plugins but it does not work. When I try to print the value I always get 'None'.
In "save_settings" I am writing:
"instance_settings.set_value('check_box', self.ui.check_box.isChecked())"
and in "restore settings":
"self.ui.check_box.setChecked(instance_settings.value('check_box', True) in [True, 'true'])"
The problem is that my value never gets saved. It always stays True for example.
I don't really understand the value function so I looked up the code in "qt_gui_plugin" and afterwards the documentation of the QSettings value function and I still don't know why it does not work.
Maybe someone can help me with this, would be really appreciated!
Thank you in advance!
Best regards
It seems to work in other plugins (e.g. https://github.com/ros-visualization/... ). You might want to share your code so that others can take a closer look at it,