Exemple #1
0
 def applicationShouldTerminate_(self, sender):
     logging.info("[osx] application terminating")
     self.setMenuTitle_("\n\n%s\n" % (T("Stopping...")))
     self.status_item.setHighlightMode_(NO)
     self.osx_icon = False
     sabnzbd.shutdown_program()
     return NSTerminateNow
Exemple #2
0
 def applicationShouldTerminate_(self, sender):
     logging.info('[osx] application terminating')
     self.setMenuTitle_("\n\n%s\n" % (T('Stopping...')))
     self.status_item.setHighlightMode_(NO)
     self.osx_icon = False
     sabnzbd.shutdown_program()
     try:
         notifier.send_notification('SABnzbd', T('SABnzbd shutdown finished'), notifier.NOTIFICATION['other'])
     except AttributeError:
         # Fails for the OSX binary
         pass
     logging.info('Leaving SABnzbd')
     sys.stderr.flush()
     sys.stdout.flush()
     return NSTerminateNow
Exemple #3
0
 def applicationShouldTerminate_(self, sender):
     logging.info('[osx] application terminating')
     self.setMenuTitle_("\n\n%s\n" % (T('Stopping...')))
     self.status_item.setHighlightMode_(NO)
     self.osx_icon = False
     sabnzbd.shutdown_program()
     try:
         notifier.send_notification('SABnzbd', T('SABnzbd shutdown finished'), notifier.NOTIFICATION['other'])
     except AttributeError:
         # Fails for the OSX binary
         pass
     logging.info('Leaving SABnzbd')
     sys.stderr.flush()
     sys.stdout.flush()
     return NSTerminateNow
Exemple #4
0
 def shutdown(self, icon):
     self.hover_text = T('Shutdown')
     sabnzbd.shutdown_program()
Exemple #5
0
 def shutdown(self, icon):
     self.hover_text = T('Shutdown')
     sabnzbd.shutdown_program()
Exemple #6
0
 def shutdown(self, icon):
     self.hover_text = self.txt_shutdown
     sabnzbd.shutdown_program()
Exemple #7
0
 def shutdown(self, icon):
     self.hover_text = self.txt_shutdown
     sabnzbd.shutdown_program()