hide watch, switch hands, store actions.json on disk
This commit is contained in:
@@ -12,7 +12,7 @@ use crate::{
|
||||
keyboard::create_keyboard,
|
||||
screen::{get_screens_wayland, get_screens_x11},
|
||||
toast::Toast,
|
||||
watch::create_watch,
|
||||
watch::{create_watch, WATCH_NAME, WATCH_SCALE},
|
||||
},
|
||||
state::AppState,
|
||||
};
|
||||
@@ -111,6 +111,10 @@ where
|
||||
o.state.reset(app, false);
|
||||
}
|
||||
}
|
||||
// toggle watch back on if it was hidden
|
||||
if !any_shown && *o.state.name == *WATCH_NAME {
|
||||
o.state.spawn_scale = WATCH_SCALE * app.session.config.watch_scale;
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user