mirror of
https://github.com/ilya-zlobintsev/LACT.git
synced 2025-02-25 18:55:26 -06:00
fix: normalize VDDC curve before applying it
See https://github.com/ilya-zlobintsev/LACT/issues/212#issuecomment-1867115975
This commit is contained in:
@@ -559,12 +559,16 @@ enum GuiUpdateMsg {
|
||||
}
|
||||
|
||||
fn show_error(parent: &ApplicationWindow, err: anyhow::Error) {
|
||||
let text = format!("{err:?}");
|
||||
warn!("{}", text.trim());
|
||||
let text = format!("{err:?}")
|
||||
.lines()
|
||||
.map(str::trim)
|
||||
.collect::<Vec<&str>>()
|
||||
.join("\n");
|
||||
warn!("{text}");
|
||||
let diag = MessageDialog::builder()
|
||||
.title("Error")
|
||||
.message_type(MessageType::Error)
|
||||
.text(&text)
|
||||
.text(text)
|
||||
.buttons(ButtonsType::Close)
|
||||
.transient_for(parent)
|
||||
.build();
|
||||
|
||||
Reference in New Issue
Block a user