mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-27 11:18:12 +08:00
Add self hosted runner to ci.yml (#955)
* Add self hosted runner to ci.yml * Remove libgtk install * Use mold as the linker * Make build logs non verbose * Fix crash on failure to get GLOBAL_PLATFORM * Copy the platform enum before calling unwrap_or_default Co-authored-by: 0hypercube <0hypercube@gmail.com>
This commit is contained in:
committed by
Keavon Chambers
co-authored by
0hypercube
parent
dcc3eadf44
commit
f67fbe8899
@@ -141,7 +141,7 @@ impl Dispatcher {
|
||||
.process_message(message, (&self.message_handlers.input_preprocessor_message_handler, actions), &mut queue);
|
||||
}
|
||||
InputPreprocessor(message) => {
|
||||
let keyboard_platform = GLOBAL_PLATFORM.get().expect("Failed to get GLOBAL_PLATFORM").as_keyboard_platform_layout();
|
||||
let keyboard_platform = GLOBAL_PLATFORM.get().copied().unwrap_or_default().as_keyboard_platform_layout();
|
||||
|
||||
self.message_handlers.input_preprocessor_message_handler.process_message(message, keyboard_platform, &mut queue);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user