desktop: fix clipboard paste
This commit is contained in:
parent
0926d37428
commit
6788b0fe02
1 changed files with 1 additions and 1 deletions
|
@ -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())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue