From 7da285b0e4910fd29385019fe56e00cfecb4a1d0 Mon Sep 17 00:00:00 2001 From: Ian Leonard Date: Mon, 29 Jun 2020 03:10:07 +0000 Subject: [PATCH] Broader filter for restore files Signed-off-by: Ian Leonard --- resources/lib/modules/system.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/resources/lib/modules/system.py b/resources/lib/modules/system.py index 2d224e35e..534247c30 100644 --- a/resources/lib/modules/system.py +++ b/resources/lib/modules/system.py @@ -462,10 +462,12 @@ def do_restore(self, listItem=None): restore_file_path = xbmcDialog.browse( 1, oe._(32373), 'files', - '??????????????.tar', + '.tar|.tar.gz|.tar.bz2|.tar.xz', False, False, - self.BACKUP_DESTINATION ) + self.BACKUP_DESTINATION, + False ) + # Do nothing if the dialog is cancelled - path will be the backup destination if not os.path.isfile(restore_file_path): return