latest
This commit is contained in:
13
src/main.rs
13
src/main.rs
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user