Skip to content

Commit

Permalink
Merge pull request #96 from anxdpanic/dev
Browse files Browse the repository at this point in the history
2.0.2
  • Loading branch information
anxdpanic authored Feb 11, 2023
2 parents f6b30e7 + d65c9a2 commit 60764f1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
8 changes: 4 additions & 4 deletions addon.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="script.skinshortcuts" name="Skin Shortcuts" version="2.0.1" provider-name="BigNoid, marcelveldt, SiLVO">
<addon id="script.skinshortcuts" name="Skin Shortcuts" version="2.0.2" provider-name="BigNoid, marcelveldt, SiLVO">
<requires>
<import addon="xbmc.python" version="3.0.0"/>
<import addon="script.module.unidecode" version="1.1.1+matrix.2"/>
Expand All @@ -8,9 +8,9 @@
<extension point="xbmc.python.library" library="resources/lib/entry_point.py"/>
<extension point="xbmc.addon.metadata">
<news>
[fix] some widgets not working |contrib: bumpaneer|
[fix] new widget properties not being properly saved and applied |contrib: bumpaneer|
[fix] fix configuration of widgets/actions on some skins |contrib: eXoterr|
[fix] translations in PVR |contrib: Dis90|
[fix] titles missing in some dialogs
[fix] handle missing profiles.xml gracefully
[lang] update translations from Weblate
</news>
<platform>all</platform>
Expand Down
2 changes: 1 addition & 1 deletion resources/lib/skinshorcuts/library.py
Original file line number Diff line number Diff line change
Expand Up @@ -2475,7 +2475,7 @@ def select_shortcut(self, group="", custom=False, available_shortcuts=None, wind
# Show select dialog
_ = self._allow_install_widget_provider(None, is_widget, self.allow_widget_install)
show_dialog = ShowDialog("DialogSelect.xml", CWD, listing=available_shortcuts,
windowtitle=window_title)
window_title=window_title)
show_dialog.doModal()
number = show_dialog.result
del show_dialog
Expand Down
7 changes: 5 additions & 2 deletions resources/lib/skinshorcuts/xmlfunctions.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,11 @@ def build_menu(self, mainmenu_id, groups, num_levels, build_mode, options, minit
profiles_xml = xbmcvfs.translatePath('special://userdata/profiles.xml')
tree = None
if xbmcvfs.exists(profiles_xml):
contents = read_file(profiles_xml)
tree = ETree.fromstring(contents)
try:
contents = read_file(profiles_xml)
tree = ETree.fromstring(contents)
except FileNotFoundError:
pass

profilelist = []
if tree is not None:
Expand Down

0 comments on commit 60764f1

Please sign in to comment.