mirror of
https://github.com/hinto-janai/gupax.git
synced 2024-11-16 17:27:37 +00:00
main: fix input()
lifetime
This commit is contained in:
parent
86c6b9791c
commit
3d3941081e
1 changed files with 2 additions and 3 deletions
|
@ -1178,7 +1178,7 @@ fn main() {
|
|||
|
||||
// Run Gupax.
|
||||
info!("/*************************************/ Init ... OK /*************************************/");
|
||||
eframe::run_native(&app.name_version.clone(), options, Box::new(|cc| Box::new(App::cc(cc, resolution, app))),);
|
||||
eframe::run_native(&app.name_version.clone(), options, Box::new(move |cc| Box::new(App::cc(cc, resolution, app))),);
|
||||
}
|
||||
|
||||
impl eframe::App for App {
|
||||
|
@ -1247,8 +1247,7 @@ impl eframe::App for App {
|
|||
let wants_input = ctx.wants_keyboard_input();
|
||||
|
||||
if key.is_f11() {
|
||||
let info = ctx.input(|i| i.viewport());
|
||||
if info.maximized == Some(true) {
|
||||
if ctx.input(|i| i.viewport().maximized == Some(true)) {
|
||||
ctx.send_viewport_cmd(egui::ViewportCommand::Fullscreen(true));
|
||||
}
|
||||
// Change Tabs LEFT
|
||||
|
|
Loading…
Reference in a new issue