fixup some bug for pake local html, update pake-cli version to 2.3.3

This commit is contained in:
Tlntin
2023-09-25 23:17:53 +08:00
parent a5d36f4419
commit f7411d2a6c
4 changed files with 21 additions and 17 deletions

View File

@@ -96,18 +96,19 @@ pub fn system_tray_handle(app: &tauri::AppHandle, event: SystemTrayEvent) {
let _res = app.save_window_state(StateFlags::all());
std::process::exit(0);
}
"about" => {
let _about_window = WindowBuilder::new(
app,
"about",
WindowUrl::App(std::path::PathBuf::from("about_pake.html")),
)
.resizable(true)
.title("About")
.inner_size(600.0, 400.0)
.build()
.expect("can't open about!");
}
// ignore about for now, because about_pake.html have be erased.
// "about" => {
// let _about_window = WindowBuilder::new(
// app,
// "about",
// WindowUrl::App(std::path::PathBuf::from("about_pake.html")),
// )
// .resizable(true)
// .title("About")
// .inner_size(600.0, 400.0)
// .build()
// .expect("can't open about!");
// }
_ => {}
}
};