From 4608f04d966ff29c1b63a4431db1913a93c287f9 Mon Sep 17 00:00:00 2001 From: Rob Weber Date: Fri, 8 Dec 2017 11:16:59 -0600 Subject: [PATCH] utilize details to show root folder and icons --- README.md | 5 +++++ resources/images/folder-icon.png | Bin 0 -> 226 bytes resources/images/plus-icon.png | Bin 0 -> 196 bytes resources/lib/advanced_editor.py | 9 +++++---- 4 files changed, 10 insertions(+), 4 deletions(-) create mode 100644 resources/images/folder-icon.png create mode 100644 resources/images/plus-icon.png diff --git a/README.md b/README.md index 9663357..44b5d5d 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,11 @@ For more specific information please check out the [wiki on Github](https://gith * [FAQ](https://github.com/robweber/xbmcbackup/wiki/FAQ) +## Attributions + +Icon files from Open Iconic — www.useiconic.com/open + + diff --git a/resources/images/folder-icon.png b/resources/images/folder-icon.png new file mode 100644 index 0000000000000000000000000000000000000000..e2f6dbf3487873ae5cf7d3ba9bbbd48679c2b4cf GIT binary patch literal 226 zcmeAS@N?(olHy`uVBq!ia0vp^1|ZDA1|-9oezpTCmSQK*5Dp-y;YjHK@;M7UB8wRq zxP?KOkzv*x37}w$r;B4qM&sKX2RWGx85j=s+HK)Hy&>>p`b0Ui2exY*cy*RrPspF7 zD&WNSA*IhSbKdqhJ+A3m2f`Y14c?0d<@{se+8{bX<^S646V@_BGj3zbVZ8wqNzewW zfD6mdK II;Vst0C0^;X#fBK literal 0 HcmV?d00001 diff --git a/resources/images/plus-icon.png b/resources/images/plus-icon.png new file mode 100644 index 0000000000000000000000000000000000000000..0a343a1cf2d899e5cad32e99848d74c7c072b749 GIT binary patch literal 196 zcmeAS@N?(olHy`uVBq!ia0vp^1|ZDA1|-9oezpTCmSQK*5Dp-y;YjHK@;M7UB8wRq zxP?KOkzv*x37}w_r;B4qM&sKXj$91}JPZe~{r?}SU+2KtbLiYo6CGRA>a&*e^X>~f z_jh_PVcLQU_s;vj#O~>L{eXrrC^XxoxNqy+y2T7@QQ%vqsu|3&?Wz*1fHpFCy85}S Ib4q9e0K^tOIsgCw literal 0 HcmV?d00001 diff --git a/resources/lib/advanced_editor.py b/resources/lib/advanced_editor.py index cdf099a..8b81eb7 100644 --- a/resources/lib/advanced_editor.py +++ b/resources/lib/advanced_editor.py @@ -142,13 +142,14 @@ class AdvancedBackupEditor: while(exitCondition != -1): #load the custom paths - options = [utils.getString(30126)] + options = [xbmcgui.ListItem(utils.getString(30126),'',utils.addon_dir() + '/resources/images/plus-icon.png')] - for aPath in customPaths.getSets(): - options.append(aPath) + for index in range(0,len(customPaths.getSets())): + aSet = customPaths.getSet(index) + options.append(xbmcgui.ListItem(aSet['name'],utils.getString(30121) + ': ' + aSet['set']['root'],utils.addon_dir() + '/resources/images/folder-icon.png')) #show the gui - exitCondition = self.dialog.select(utils.getString(30125),options) + exitCondition = self.dialog.select(utils.getString(30125),options,useDetails=True) if(exitCondition >= 0): if(exitCondition == 0):