mirror of
https://github.com/Tim-Paik/neutauri.git
synced 2024-10-12 23:29:41 +00:00
Merge branch 'main' of github.com:Tim-Paik/neutauri
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@ -57,15 +57,12 @@ 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,
|
||||
|
Reference in New Issue
Block a user