Add tauri window save state plugin

This commit is contained in:
Gregory Schier
2023-10-28 13:14:27 -07:00
parent 5d15d1565c
commit c4a8603b81
4 changed files with 987 additions and 704 deletions

View File

@@ -3,11 +3,11 @@ use tauri::{Runtime, Window};
const TRAFFIC_LIGHT_OFFSET_X: f64 = 13.0;
const TRAFFIC_LIGHT_OFFSET_Y: f64 = 18.0;
pub trait WindowExt {
pub trait TrafficLightWindowExt {
fn position_traffic_lights(&self);
}
impl<R: Runtime> WindowExt for Window<R> {
impl<R: Runtime> TrafficLightWindowExt for Window<R> {
#[cfg(not(target_os = "macos"))]
fn position_traffic_lights(&self) {
// No-op