Move zoom_adj to App so it doesn't persist between runs

Addresses comments from #22.

Signed-off-by: Mohammad AlSaleh <CE.Mohammad.AlSaleh@gmail.com>
This commit is contained in:
Mohammad AlSaleh 2024-01-03 20:06:55 +03:00 committed by Jeremy Soller
parent ef1e03e566
commit ff5c46cd19
3 changed files with 15 additions and 15 deletions

View file

@ -316,11 +316,11 @@ impl Terminal {
self.update();
}
pub fn set_config(&mut self, config: &crate::Config, themes: &HashMap<String, Colors>) {
pub fn set_config(&mut self, config: &crate::Config, themes: &HashMap<String, Colors>, zoom_adj: i8) {
let mut update_cell_size = false;
let mut update = false;
let metrics = config.metrics();
let metrics = config.metrics(zoom_adj);
if metrics != self.buffer.metrics() {
{
let mut font_system = font_system().write().unwrap();