mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-19 02:48:12 +08:00
Add log level selection to help menu (#511)
* Add log level selection to help menu * Show keyboard shortcuts in loglevel menu items
This commit is contained in:
committed by
Keavon Chambers
parent
492025e79b
commit
62fc269b8a
@@ -220,6 +220,21 @@ impl JsEditorHandle {
|
||||
self.dispatch(message);
|
||||
}
|
||||
|
||||
pub fn log_level_info(&self) {
|
||||
let message = GlobalMessage::LogInfo;
|
||||
self.dispatch(message);
|
||||
}
|
||||
|
||||
pub fn log_level_debug(&self) {
|
||||
let message = GlobalMessage::LogDebug;
|
||||
self.dispatch(message);
|
||||
}
|
||||
|
||||
pub fn log_level_trace(&self) {
|
||||
let message = GlobalMessage::LogTrace;
|
||||
self.dispatch(message);
|
||||
}
|
||||
|
||||
/// Send new bounds when document panel viewports get resized or moved within the editor
|
||||
/// [left, top, right, bottom]...
|
||||
pub fn bounds_of_viewports(&self, bounds_of_viewports: &[f64]) {
|
||||
|
||||
Reference in New Issue
Block a user