This commit is contained in:
Rph :3
2025-04-15 18:38:11 +02:00
parent 772f1c634c
commit 6eb5da9599
3 changed files with 73 additions and 8 deletions

View File

@@ -74,6 +74,19 @@ impl eframe::App for Application {
});
});
},
UiState::Error(reason) => {
egui::TopBottomPanel::top("error_title_bar").show(ctx, |ui| {
ui.with_layout(Layout::top_down(Align::Center), |ui| {
ui.label(RichText::new("An error has occured :(").size(32.0));
});
});
egui::CentralPanel::default().show(ctx, |ui| {
center_vertical(ui,|ui| {
ui.label(RichText::new(reason).size(32.0));
});
});
},
UiState::KeyRequired(reason) => {
let mut is_valid = true;
let hash = sha2::Sha256::digest(&self.key_input.as_bytes());