fix: handle is none

This commit is contained in:
GyDi
2022-09-12 00:45:19 +08:00
parent cf96622261
commit 2d2fdf0b1e
3 changed files with 26 additions and 13 deletions

View File

@@ -10,8 +10,8 @@ pub struct Handle {
}
impl Handle {
pub fn from(app_handle: Option<AppHandle>) -> Handle {
Handle { app_handle }
pub fn set_inner(&mut self, app_handle: AppHandle) {
self.app_handle = Some(app_handle);
}
pub fn get_window(&self) -> Option<Window> {