fixed favicon support

This commit is contained in:
pandadev 2024-07-16 17:22:21 +02:00
parent ba0a408349
commit a11bc18143
No known key found for this signature in database
GPG key ID: C39629DACB8E762F
6 changed files with 336 additions and 43 deletions

View file

@ -50,15 +50,15 @@ fn main() {
if let Some(window) = app.get_window("main") {
let _ = window.restore_state(StateFlags::POSITION);
center_window_on_current_monitor(&window);
window.show().unwrap();
window.hide().unwrap();
}
#[cfg(dev)]
{
let window = app.get_webview_window("main").unwrap();
window.open_devtools();
window.close_devtools();
}
// #[cfg(dev)]
// {
// let window = app.get_webview_window("main").unwrap();
// window.open_devtools();
// window.close_devtools();
// }
Ok(())
})