mirror of
https://github.com/danbulant/appit
synced 2026-06-16 21:01:11 +00:00
Registering xdg before starting winit
This commit is contained in:
parent
95fc2c6744
commit
6869fcf3be
1 changed files with 4 additions and 2 deletions
|
|
@ -229,6 +229,10 @@ where
|
|||
on_startup,
|
||||
pending_windows,
|
||||
} = self;
|
||||
|
||||
#[cfg(all(target_os = "linux", feature = "xdg"))]
|
||||
xdg::observe_darkmode_changes(event_loop.create_proxy());
|
||||
|
||||
event_loop.run_app(&mut RunningApp::<AppMessage> {
|
||||
message_callback,
|
||||
running,
|
||||
|
|
@ -256,8 +260,6 @@ where
|
|||
let StartCause::Init = cause else {
|
||||
return;
|
||||
};
|
||||
#[cfg(all(target_os = "linux", feature = "xdg"))]
|
||||
self.observe_darkmode_changes(event_loop.proxy());
|
||||
self.running.started.store(true, Ordering::Relaxed);
|
||||
for PendingWindow {
|
||||
window,
|
||||
|
|
|
|||
Loading…
Reference in a new issue