Fix traffic lights thingy

This commit is contained in:
Gregory Schier
2023-03-12 20:47:52 -07:00
parent 9b6c1ad364
commit 2056e7f40a
2 changed files with 5 additions and 1 deletions

View File

@@ -352,7 +352,10 @@ fn main() {
.system_tray(system_tray)
.setup(|app| {
let win = app.get_window("main").unwrap();
#[cfg(target_os = "macos")]
win.position_traffic_lights();
Ok(())
})
.setup(|app| {
@@ -402,6 +405,8 @@ fn main() {
.on_window_event(|e| {
let apply_offset = || {
let win = e.window();
#[cfg(target_os = "macos")]
win.position_traffic_lights();
};