feat: refine settings feedback and controls
This commit is contained in:
1 parent
45d9b85abf
commit
17aff8ec6d
8 files changed
+174
-57
No files matched your search
@@ -49,6 +49,15 @@ pub fn push_error(event: ErrorEvent) {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn push_message(level: Level, message: impl Into<String>) {
|
||||
push_error(ErrorEvent {
|
||||
id: 0,
|
||||
level,
|
||||
message: message.into(),
|
||||
pushed_at: Instant::now(),
|
||||
});
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
pub fn has_errors() -> bool {
|
||||
match ERROR_EVENTS.lock() {
|
||||
|
||||
Reference in new issue
Block a user