mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-06-18 06:06:14 +00:00
Revert "Add option to delete user info"
This reverts commit 705b5f29d5
.
This commit is contained in:
parent
705b5f29d5
commit
39f7d67c0e
2 changed files with 3 additions and 20 deletions
|
@ -154,17 +154,9 @@ def removeDirectory(path):
|
|||
|
||||
def reset():
|
||||
|
||||
WINDOW = xbmcgui.Window( 10000 )
|
||||
return_value = xbmcgui.Dialog().yesno("Warning", "Are you sure you want to reset your local database?")
|
||||
|
||||
if return_value == 0:
|
||||
return
|
||||
|
||||
# Ask if user information should be deleted too.
|
||||
return_user = xbmcgui.Dialog().yesno("Warning", "Do you wish to erase your saved Emby user information?")
|
||||
|
||||
if return_user == 1:
|
||||
WINDOW.setProperty("EraseUserInfo", "true")
|
||||
|
||||
# first stop any db sync
|
||||
WINDOW = xbmcgui.Window( 10000 )
|
||||
|
@ -197,6 +189,6 @@ def reset():
|
|||
WINDOW.setProperty("SyncInstallRunDone", "false")
|
||||
|
||||
dialog = xbmcgui.Dialog()
|
||||
dialog.ok('Emby Reset', 'Database reset has completed, Kodi will now restart to apply the changes.')
|
||||
dialog.ok('Emby Reset', 'Database reset has completed, kodi will now restart to apply the changes.')
|
||||
xbmc.executebuiltin("RestartApp")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue