HUGE THANKS FOR REMINDING

This commit is contained in:
shenjack 2023-07-07 20:01:44 +08:00
parent 539afd73b9
commit 720b48d669

View File

@ -354,10 +354,9 @@ class ClientWindow(Window):
self.logger.info(tr().window.command.text().format(f"|{command.text}|")) self.logger.info(tr().window.command.text().format(f"|{command.text}|"))
command.find('/') command.find('/')
if command.find('stop'): if command.find('stop'):
# self.dispatch_event('on_exit') self.logger.info("command stop!")
print("command stop!") # HUGE THANKS to Discord @nokiyasos for this fix!
pyglet.app.platform_event_loop.stop() pyglet.app.exit()
self.dispatch_event('on_close', 'command') # source = command
elif command.find('fps'): elif command.find('fps'):
if command.find('log'): if command.find('log'):
self.logger.debug(self.fps_log.fps_list) self.logger.debug(self.fps_log.fps_list)