native-dialog-rs icon indicating copy to clipboard operation
native-dialog-rs copied to clipboard

`show_confirm()` method on `MessageDialog` shows nothing and returns false on Linux Mint

Open Echo-Heo opened this issue 1 year ago • 1 comments

File dialog, and alert messages all work, but confirmation message does not show up and just returns false.

code in question although I don't think it will help:

let yes = MessageDialog::new()
    .set_type(MessageType::Warning)
    .set_title("File already exists")
    .set_text("File already exists! Override?")
    .show_confirm()
    .unwrap();
println!("{yes}"); // prints false, if i change above to show_alert(), it works.
if !yes {
    return; 
}

Will provide more information if needed, I just don't really know what's relavant

Echo-Heo avatar Mar 14 '24 06:03 Echo-Heo

I encountered a similar issue on Linux (Ubuntu) with the Zenity implementation. I'll create a pull request for a fix that solved the issue for me, not certain it will help you but it might.

rsethc avatar Apr 11 '24 07:04 rsethc