From 6de7ccaddfbadb3a8f09d8b967ad0ba9d6fafd59 Mon Sep 17 00:00:00 2001 From: Rob Weber Date: Fri, 13 Feb 2015 09:28:55 -0600 Subject: [PATCH] closes #63 --- remove_auth.py | 11 +++++++++++ resources/language/English/strings.xml | 3 +++ resources/settings.xml | 1 + 3 files changed, 15 insertions(+) create mode 100644 remove_auth.py diff --git a/remove_auth.py b/remove_auth.py new file mode 100644 index 0000000..b76d43d --- /dev/null +++ b/remove_auth.py @@ -0,0 +1,11 @@ +import xbmc +import xbmcgui +import xbmcvfs +import resources.lib.utils as utils + +#triggered from settings.xml - asks if user wants to delete OAuth token information +shouldDelete = xbmcgui.Dialog().yesno(utils.getString(30093),utils.getString(30094),utils.getString(30095),autoclose=7000) + +if(shouldDelete): + #delete any of the known token file types + xbmcvfs.delete(xbmc.translatePath(utils.data_dir() + "tokens.txt")) #dropbox diff --git a/resources/language/English/strings.xml b/resources/language/English/strings.xml index 90762aa..c5c8e27 100644 --- a/resources/language/English/strings.xml +++ b/resources/language/English/strings.xml @@ -84,4 +84,7 @@ The destination may not be writeable Zip archive could not be copied Not all files were copied + Delete Authorization Info + This will delete any OAuth token files + Do you want to do this? diff --git a/resources/settings.xml b/resources/settings.xml index f3aaa6b..d9396b3 100644 --- a/resources/settings.xml +++ b/resources/settings.xml @@ -6,6 +6,7 @@ +