basic working version of approval screen
This commit is contained in:
1 parent
49c1e81e1d
commit
5f1ff5e4e8
9 files changed
+174
-24
No files matched your search
+3
-1
@@ -1,11 +1,13 @@
|
||||
use gpui_kit::{Context, Global};
|
||||
|
||||
mod approval;
|
||||
mod credentials;
|
||||
mod home;
|
||||
mod unlock;
|
||||
mod welcome;
|
||||
|
||||
use crate::app::CreddyApp;
|
||||
pub use approval::ApprovalScreen;
|
||||
pub use credentials::CredentialsScreen;
|
||||
pub use home::HomeScreen;
|
||||
pub use unlock::UnlockScreen;
|
||||
@@ -35,7 +37,7 @@ impl Screen {
|
||||
// therwise if locked, ask for unlock
|
||||
AppSession::Locked => Screen::Unlock,
|
||||
// otherwise, fall back to "current screen" global
|
||||
AppSession::Unlocked{ .. } => *cx.global::<Screen>(),
|
||||
AppSession::Unlocked(_) => *cx.global::<Screen>(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user