Creating a generic UI error handling mechanism
This commit is contained in:
1 parent
3c1e4c51cd
commit
798b197d4a
13 files changed
+81
-9
No files matched your search
@@ -81,7 +81,7 @@ export class HotkeysManager {
|
||||
load(contextName) {
|
||||
return new Promise((resolve, reject) => {
|
||||
const context = this.getContext(contextName);
|
||||
if (!context) return;
|
||||
if (!context) return reject();
|
||||
this.retrieve(contextName).then(defs => {
|
||||
const definitions = defs || this.defaults[contextName];
|
||||
if (!definitions) {
|
||||
@@ -151,6 +151,6 @@ export class HotkeysManager {
|
||||
|
||||
this.currentContextName = contextName;
|
||||
newContext.initialize();
|
||||
this.load(contextName);
|
||||
this.load(contextName).catch(() => {});
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user