fix: refine runtime change confirmation
This commit is contained in:
1 parent
8de0cbaa09
commit
e8d67322b0
3 files changed
+5
-8
No files matched your search
@@ -802,10 +802,6 @@ impl App {
|
|||||||
self.apply_instance_settings(*updated, desktop);
|
self.apply_instance_settings(*updated, desktop);
|
||||||
}
|
}
|
||||||
widgets::popups::instance_settings::Action::ConfirmRuntime { name } => {
|
widgets::popups::instance_settings::Action::ConfirmRuntime { name } => {
|
||||||
error_buffer::push_message(
|
|
||||||
tracing::Level::WARN,
|
|
||||||
"Some installed mods may be incompatible",
|
|
||||||
);
|
|
||||||
confirm_popup::set_pending(confirm_popup::ConfirmTarget::InstanceRuntime {
|
confirm_popup::set_pending(confirm_popup::ConfirmTarget::InstanceRuntime {
|
||||||
name,
|
name,
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -680,14 +680,13 @@ fn runtime_settings_use_the_shared_confirmation_popup() {
|
|||||||
ui.draw();
|
ui.draw();
|
||||||
assert!(ui.screen().contains("Change runtime"));
|
assert!(ui.screen().contains("Change runtime"));
|
||||||
assert!(!ui.screen().contains("Target:"));
|
assert!(!ui.screen().contains("Target:"));
|
||||||
assert!(ui.screen().contains("Apply this runtime change"));
|
|
||||||
assert!(
|
assert!(
|
||||||
!ui.screen()
|
ui.screen()
|
||||||
.contains("Some installed mods may be incompatible")
|
.contains("Some installed mods may be incompatible")
|
||||||
);
|
);
|
||||||
assert!(!ui.screen().contains("incompatible."));
|
assert!(!ui.screen().contains("incompatible."));
|
||||||
assert!(
|
assert!(
|
||||||
crate::feedback::errors::ERROR_EVENTS
|
!crate::feedback::errors::ERROR_EVENTS
|
||||||
.lock()
|
.lock()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.iter()
|
.iter()
|
||||||
|
|||||||
@@ -120,7 +120,9 @@ impl ConfirmTarget {
|
|||||||
})
|
})
|
||||||
.collect::<Vec<_>>()
|
.collect::<Vec<_>>()
|
||||||
.join("\n"),
|
.join("\n"),
|
||||||
ConfirmTarget::InstanceRuntime { .. } => "Apply this runtime change".to_owned(),
|
ConfirmTarget::InstanceRuntime { .. } => {
|
||||||
|
"Some installed mods may be incompatible".to_owned()
|
||||||
|
}
|
||||||
ConfirmTarget::AutomaticSelection { setting, .. } => setting.description().to_owned(),
|
ConfirmTarget::AutomaticSelection { setting, .. } => setting.description().to_owned(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user