Skip to content

Commit

Permalink
Merge pull request #644 from bu5hm4nn/fix/egui-native-dpi-detection
Browse files Browse the repository at this point in the history
Fix bug when saving scaling settings
  • Loading branch information
bu5hm4nn authored Feb 20, 2024
2 parents b6563fa + 1c83e03 commit fe45e99
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions gossip-bin/src/ui/settings/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,13 @@ pub(super) fn update(app: &mut GossipUi, ctx: &Context, frame: &mut eframe::Fram
dpi_changed = true;
}

if let Err(e) = app.unsaved_settings.save() {
tracing::error!("Error saving settings: {}", e);
}

if dpi_changed {
app.init_scaling(ctx);
}

let _ = app.unsaved_settings.save();
}
}
});
Expand Down

0 comments on commit fe45e99

Please sign in to comment.