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:
parent
ef1e03e566
commit
ff5c46cd19
3 changed files with 15 additions and 15 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue