desktop: fix clipboard paste

This commit is contained in:
ardocrat 2023-11-08 00:44:44 +03:00
parent 0926d37428
commit 6788b0fe02

View file

@ -29,6 +29,6 @@ impl PlatformCallbacks for Desktop {
fn get_string_from_buffer(&self) -> String { fn get_string_from_buffer(&self) -> String {
let mut clipboard = arboard::Clipboard::new().unwrap(); let mut clipboard = arboard::Clipboard::new().unwrap();
clipboard.get_text().unwrap() clipboard.get_text().unwrap_or("".to_string())
} }
} }