Menu Rapido fix spostamento in alto da scrollbar

This commit is contained in:
Alhaziel01
2020-05-14 19:45:41 +02:00
parent beaf398a4e
commit 2fd781b4d7
3 changed files with 7 additions and 3 deletions
+5 -1
View File
@@ -123,8 +123,12 @@ class Main(xbmcgui.WindowXMLDialog):
if action.getId() == xbmcgui.ACTION_CONTEXT_MENU: if action.getId() == xbmcgui.ACTION_CONTEXT_MENU:
config.open_settings() config.open_settings()
focus = self.getFocusId()
if action == 3: if action == 3:
if submenu: if focus == 61:
self.setFocusId(32500)
elif submenu:
self.close() self.close()
open_shortcut_menu() open_shortcut_menu()
elif self.getControl(32500).getSelectedItem().getProperty('channel') in ['news', 'channelselector', 'search', 'videolibrary']: elif self.getControl(32500).getSelectedItem().getProperty('channel') in ['news', 'channelselector', 'search', 'videolibrary']:
@@ -164,7 +164,7 @@
<showonepage>false</showonepage> <showonepage>false</showonepage>
<orientation>horizontal</orientation> <orientation>horizontal</orientation>
<ondown>32500</ondown> <ondown>32500</ondown>
<onup>32500</onup> <!-- <onup>32500</onup> -->
<animation effect="slide" end="120,0" time="0" condition="!Control.IsVisible(5)">Conditional</animation> <animation effect="slide" end="120,0" time="0" condition="!Control.IsVisible(5)">Conditional</animation>
</control> </control>
</control> </control>
@@ -164,7 +164,7 @@
<showonepage>false</showonepage> <showonepage>false</showonepage>
<orientation>horizontal</orientation> <orientation>horizontal</orientation>
<ondown>32500</ondown> <ondown>32500</ondown>
<onup>32500</onup> <!-- <onup>32500</onup> -->
<animation effect="slide" end="120,0" time="0" condition="!Control.IsVisible(5)">Conditional</animation> <animation effect="slide" end="120,0" time="0" condition="!Control.IsVisible(5)">Conditional</animation>
</control> </control>
</control> </control>