S001: first build compiles; fix 5 compile errors in place
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
parent
49825b626e
commit
d2bb67f4ea
1 changed files with 37 additions and 17 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue