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
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
def shutdown(self, icon): self.hover_text = T('Shutdown') sabnzbd.shutdown_program()
def shutdown(self, icon): self.hover_text = self.txt_shutdown sabnzbd.shutdown_program()