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):
2012
2012
# do not exit
2013
2013
return
2014
2014
# exit program
2015
+ self .ctrl_c_handler (0 ,0 )
2015
2016
return - 1
2016
2017
elif char in (ord ('n' ), ):
2017
2018
# exit program
2019
+ self ._cnf .save_config ()
2018
2020
return - 1
2019
2021
elif char in (curses .KEY_EXIT , ord ('q' ), 27 ):
2020
2022
self .bodyWin .nodelay (True )
2021
2023
char = self .bodyWin .getch ()
2022
2024
self .bodyWin .nodelay (False )
2023
2025
if char == - 1 :
2024
2026
""" ESCAPE """
2027
+ self ._cnf .save_config ()
2025
2028
return - 1
2026
2029
return
2027
2030
@@ -2259,7 +2262,7 @@ def keypress(self, char):
2259
2262
return
2260
2263
#else:
2261
2264
# self._open_playlist()
2262
- # self.ctrl_c_handler(0,0)
2265
+ self .ctrl_c_handler (0 ,0 )
2263
2266
return - 1
2264
2267
else :
2265
2268
return
You can’t perform that action at this time.
0 commit comments