Skip to content

Commit

Permalink
Attempt to fix prefs amnesia on Windows 10.
Browse files Browse the repository at this point in the history
  • Loading branch information
agraef committed Nov 22, 2024
1 parent 07baf4c commit 0468b25
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pd/src/s_inter.c
Original file line number Diff line number Diff line change
Expand Up @@ -1846,6 +1846,7 @@ void sys_bail(int n)
extern void glob_closeall(void *dummy, t_floatarg fforce);

extern int do_not_redraw;
extern void glob_savepreferences(t_pd *dummy);

void glob_quit(void *dummy, t_floatarg status)
{
Expand All @@ -1872,6 +1873,8 @@ void glob_quit(void *dummy, t_floatarg status)
canvas_suspend_dsp();
do_not_redraw = 1;
glob_closeall(0, 1);
// [email protected] 2022-12-14: save preferences on quit
glob_savepreferences(dummy);
//sys_vgui("exit\n");
gui_vmess("app_quit", "");
if (!sys_nogui)
Expand Down

0 comments on commit 0468b25

Please sign in to comment.