mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-25 11:48:12 +08:00
Desktop: Fix missing taskbar icon on Windows (#3490)
* fix missing taskbar icon * focus window after init
This commit is contained in:
@@ -52,6 +52,7 @@ impl Window {
|
||||
.with_min_surface_size(winit::dpi::LogicalSize::new(400, 300))
|
||||
.with_surface_size(winit::dpi::LogicalSize::new(1200, 800))
|
||||
.with_resizable(true)
|
||||
.with_visible(false)
|
||||
.with_theme(Some(winit::window::Theme::Dark));
|
||||
|
||||
attributes = native::NativeWindowImpl::configure(attributes, event_loop);
|
||||
@@ -67,6 +68,11 @@ impl Window {
|
||||
}
|
||||
}
|
||||
|
||||
pub(crate) fn show(&self) {
|
||||
self.winit_window.set_visible(true);
|
||||
self.winit_window.focus_window();
|
||||
}
|
||||
|
||||
pub(crate) fn request_redraw(&self) {
|
||||
self.winit_window.request_redraw();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user