This commit is contained in:
Rob Weber
2015-02-13 09:28:55 -06:00
parent 65d10e22d9
commit 6de7ccaddf
3 changed files with 15 additions and 0 deletions

11
remove_auth.py Normal file
View File

@@ -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