Posts: 26
Joined: Nov 2015
Reputation:
0
i note that kodi will load the skin when you first in a window, and after that it will not load again when you second switch the same window, my quesetion is how can i reload the skin in this window if it is not the first time when i need to do this, refresh or clear the array?? who have any idea? thanks
Posts: 26
Joined: Nov 2015
Reputation:
0
who can tell me how the kodi judge if a window is first open, i cant find it in the source code
Posts: 1,506
Joined: Nov 2013
i'm not entirely sure i understand your question, but you can call the 'ReloadSkin' built-in command (or see what it does) to reload the skin.
window activation have several spots but see xbmc/interfaces/builtins/GUIBuiltins.cpp, ActivateWindow() for one piece of code in use. there is an explicit if() to not re-activate the same window.
Posts: 1,506
Joined: Nov 2013
hitcher is old school, that was the old name of the file
system/keymaps/keyboard.xml if you actually want to edit the system level file. if not, see
http://kodi.wiki/view/HOW-TO:Modify_keymaps
Posts: 17,859
Joined: Jul 2011
Reputation:
371
i would suggest to add it in your userdata and not modify the system keymap.xml as you will loose it when you update Kodi
Posts: 15,263
Joined: Jan 2009
Reputation:
727
ronie
Team-Kodi Member
Posts: 15,263
it's a know issue you'll get skin issues when you change the screensize.
either restart kodi or manually reload the skin as mentioned above.
there's no auto-way of doing this.
Posts: 26
Joined: Nov 2015
Reputation:
0
i decide to do this way: when you change the resolution , the screen will come out a dialog window :yes button and no button, i create a new process use folk,when user click yes button , child process kill kodi and restart it, then the screen will display right with new resolution.
but now i didn't find the code when click yes button. so any one can tell me where the right code when click yes-button. thanks
Posts: 15,263
Joined: Jan 2009
Reputation:
727
ronie
Team-Kodi Member
Posts: 15,263
it's handled internally by kodi.
so unless you want to modify the kodi source-code and recompile,
there's no way for skins to know if yes or no was pressed.