-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(win,gui): log errors via notification system (#1049)
Add an extra way for the Windows logger to notify on errors: use the OS notification system to show whatever fits Configurable, on by default. Other log levels do not use OS notification to avoid spamming.
- Loading branch information
Showing
12 changed files
with
188 additions
and
31 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,17 @@ | ||
pub mod win; | ||
pub use win::*; | ||
pub mod win_dbg_logger; | ||
pub mod win_nwg_ext; | ||
pub use win_dbg_logger as log_win; | ||
pub use win_dbg_logger::WINDBG_LOGGER; | ||
pub use win_nwg_ext::*; | ||
|
||
use crate::*; | ||
use parking_lot::Mutex; | ||
use std::sync::mpsc::Sender as ASender; | ||
use std::sync::{Arc, OnceLock}; | ||
pub static CFG: OnceLock<Arc<Mutex<Kanata>>> = OnceLock::new(); | ||
pub static GUI_TX: OnceLock<native_windows_gui::NoticeSender> = OnceLock::new(); | ||
pub static GUI_CFG_TX: OnceLock<native_windows_gui::NoticeSender> = OnceLock::new(); | ||
pub static GUI_ERR_TX: OnceLock<native_windows_gui::NoticeSender> = OnceLock::new(); | ||
pub static GUI_ERR_MSG_TX: OnceLock<ASender<(String, String)>> = OnceLock::new(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.