mirror of
https://github.com/Tim-Paik/neutauri.git
synced 2024-10-12 23:29:41 +00:00
update deps
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
@ -10,7 +10,7 @@ neutauri_data = {path = "../neutauri_data", features = ["bundler"]}
|
||||
new_mime_guess = "4.0"
|
||||
serde = {version = "1.0", features = ["derive"]}
|
||||
toml = "0.5"
|
||||
wry = {version = "0.16", default-features = false, features = ["protocol", "tray", "gtk-tray", "transparent", "fullscreen", "devtools"]}
|
||||
wry = {version = "0.19", default-features = false, features = ["protocol", "tray", "transparent", "fullscreen", "devtools"]}
|
||||
|
||||
[target.'cfg(windows)'.dependencies]
|
||||
rcedit = {git = "https://github.com/Tim-Paik/rcedit-rs.git", rev = "2805fca"}
|
||||
@ -23,8 +23,3 @@ FileDescription = "Neutauri Bundler"
|
||||
LegalCopyright = "@2022 Neutauri Developers"
|
||||
OriginalFilename = ""
|
||||
ProductName = "Neutauri"
|
||||
|
||||
[profile.release]
|
||||
lto = true
|
||||
strip = true
|
||||
opt-level = "z"
|
||||
|
@ -57,12 +57,15 @@ pub fn dev(config_path: String) -> wry::Result<()> {
|
||||
)?)),
|
||||
None => window_builder,
|
||||
};
|
||||
let monitor_size = event_loop.primary_monitor().unwrap_or_else(|| {
|
||||
event_loop
|
||||
.available_monitors()
|
||||
.next()
|
||||
.expect("no monitor found")
|
||||
}).size();
|
||||
let monitor_size = event_loop
|
||||
.primary_monitor()
|
||||
.unwrap_or_else(|| {
|
||||
event_loop
|
||||
.available_monitors()
|
||||
.next()
|
||||
.expect("no monitor found")
|
||||
})
|
||||
.size();
|
||||
let window_builder = match config.window_attr()?.inner_size {
|
||||
Some(size) => window_builder.with_inner_size(get_size(size, monitor_size)),
|
||||
None => window_builder,
|
||||
@ -186,9 +189,7 @@ pub fn dev(config_path: String) -> wry::Result<()> {
|
||||
event: WindowEvent::CloseRequested,
|
||||
..
|
||||
} => *control_flow = ControlFlow::Exit,
|
||||
_ => {
|
||||
let _ = webview.resize();
|
||||
}
|
||||
_ => (),
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user