Fix primary clipboard storing and release 0.3.1

This commit is contained in:
Lucas Timmins 2019-06-08 12:08:01 +08:00
parent 59fa30aba0
commit 18e49392ca
3 changed files with 8 additions and 1 deletions

View file

@ -370,6 +370,9 @@ fn clipboard_thread(
(),
)
});
if let Ok(source) = &source {
source.offer("text/plain;charset=utf-8".to_string());
}
primary_device.set_selection(source.ok().as_ref(), *enter_serial);
}
}