File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -2012,16 +2012,19 @@ def keypress(self, char):
20122012 # do not exit
20132013 return
20142014 # exit program
2015+ self .ctrl_c_handler (0 ,0 )
20152016 return - 1
20162017 elif char in (ord ('n' ), ):
20172018 # exit program
2019+ self ._cnf .save_config ()
20182020 return - 1
20192021 elif char in (curses .KEY_EXIT , ord ('q' ), 27 ):
20202022 self .bodyWin .nodelay (True )
20212023 char = self .bodyWin .getch ()
20222024 self .bodyWin .nodelay (False )
20232025 if char == - 1 :
20242026 """ ESCAPE """
2027+ self ._cnf .save_config ()
20252028 return - 1
20262029 return
20272030
@@ -2259,7 +2262,7 @@ def keypress(self, char):
22592262 return
22602263 #else:
22612264 # self._open_playlist()
2262- # self.ctrl_c_handler(0,0)
2265+ self .ctrl_c_handler (0 ,0 )
22632266 return - 1
22642267 else :
22652268 return
You can’t perform that action at this time.
0 commit comments