Model lock ownership explicitly and allow protected crash recovery

This commit is contained in:
Samuel Onoja committed 2026-10-02 08:48:01 +01:00
1 parent 570984a39b
commit 8ad5293178
22 files changed
+264 -80

No files matched your search

+3 -3
View File
@@ -94,7 +94,7 @@ impl Dispatch<FereseShellV1, ()> for Ferese {
_display: &DisplayHandle,
_data_init: &mut DataInit<'_, Self>,
) {
if state.session_lock.active {
if state.session_lock.active() {
return;
}
match request {
@@ -207,7 +207,7 @@ impl Ferese {
}
pub(crate) fn toggle_keybinding_guide(&mut self) -> bool {
if self.session_lock.active {
if self.session_lock.active() {
return false;
}
let Some(shell) = self
@@ -225,7 +225,7 @@ impl Ferese {
}
pub(crate) fn request_logout_confirmation(&mut self) {
if self.session_lock.active {
if self.session_lock.active() {
return;
}
let shells = self