pagers: Remember zoom setting when changed by pager menu

This commit is contained in:
Kim Woelders 2021-11-13 18:45:18 +01:00
parent 370a899bec
commit 8f82fe1559
1 changed files with 12 additions and 2 deletions

View File

@ -1287,6 +1287,16 @@ PagersSetMode(int mode)
autosave();
}
static void
PagersSetZoom(int onoff)
{
if (Conf_pagers.zoom == onoff)
return;
Conf_pagers.zoom = onoff;
autosave();
}
/*
* Pager event handlers
*/
@ -2103,9 +2113,9 @@ IPC_Pager(const char *params)
else if (!strcmp(prm1, "zoom"))
{
if (!strcmp(p, "on"))
Conf_pagers.zoom = 1;
PagersSetZoom(1);
else if (!strcmp(p, "off"))
Conf_pagers.zoom = 0;
PagersSetZoom(0);
}
}