Posts: 9
Joined: Aug 2020
Reputation:
0
Hi, when I set <reuselanguageinvoker>true</reuselanguageinvoker> in addon.xml then changes in addon settings are not being saved. Only way to make any change to settings is when I open settings dialog via custom menu item inside plugin dir that calls "ADDON.openSettings()" when clicked. When you open settings dialog from Kodi "Information" window via Configure button then nothing is saved after you click OK.
Is there any particular reason why this can happen?
Posts: 9
Joined: Aug 2020
Reputation:
0
When I change any settings from kodi menu, press OK and open settings again then I can see value saved but only until I open the plugin. After that it is in previous state (as it was when plugin was opened last time).
For example:
1. Open plugin
2. Open plugin settings with plugin action
3. Set bool option to True
4. Press OK
5. Open settings same with plugin action again
6. It is still True
------------------------------------
1. Open plugin settings from Kodi menu
2. Set bool option to False
3. Press OK
4. Open settings from Kodi menu again
5. It is still False
6. Open plugin
7. Open settings with plugin action
8. It is True again
Posts: 9
Joined: Aug 2020
Reputation:
0
Can someone help me please? I can donate to the project if its needed first to get some support. I am getting desperate with this bug. I cannot use settings properly in the plugin.
Posts: 9
Joined: Aug 2020
Reputation:
0
The settings are not saved if you do not go to it from the add-on or you have to restart Kodi to save it. When you save a setting outside an add-on (Kodi menu) and then open it, it overwrites the settings the add-on had when it was last opened.
Posts: 9
Joined: Aug 2020
Reputation:
0
So I managed to find why this can happen. For anyone else struggling with this make sure that your service script is not calling Addon.getSetting() over and over in each monitor tick.