Пример #1
0
 def onAbortRequested(self):
     # Only when closing Kodi
     if xbmc.abortRequested:
         xbmc.executebuiltin("Dialog.Close(all, true)")
         shutdown()
         self._closing.set()
         self._closing.clear()
Пример #2
0
 def onAbortRequested(self):
     # Only when closing Kodi
     if xbmc.abortRequested:
         xbmc.executebuiltin("Dialog.Close(all, true)")
         shutdown()
         try:
             self._closing.set()
             self._closing.clear()
         except SystemExit as e:
             if e.code != 0:
                 os._exit(0)
             pass
Пример #3
0
 def onAbortRequested(self):
     # Only when closing Kodi
     if xbmc.abortRequested:
         xbmc.executebuiltin("Dialog.Close(all, true)")
         shutdown()
         try:
             self._closing.set()
             self._closing.clear()
         except SystemExit as e:
             if e.code != 0:
                 os._exit(0)
             pass