コード例 #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