S001: first build compiles; fix 5 compile errors in place

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
astar76 2026-11-11 17:27:07 -06:00
commit d2bb67f4ea

View file

@ -944,7 +944,8 @@ fn newtab(ui: &mut Ui, f: &mut Frame, s: &mut Settings) {
}
});
switch_row(ui, "Follows the mouse", "", &mut s.ntp.bg_mouse);
row(ui, "Image", if s.ntp.bg_image.is_empty() { "None" } else { &s.ntp.bg_image }, |ui| {
let image = if s.ntp.bg_image.is_empty() { "None".to_owned() } else { s.ntp.bg_image.clone() };
row(ui, "Image", &image, |ui| {
if !s.ntp.bg_image.is_empty() && ui.button("Remove").clicked() {
s.ntp.bg_image.clear();
}