mirror of
https://github.com/zadam/trilium.git
synced 2025-11-10 23:35:50 +01:00
10x speed-up of event propagation
This commit is contained in:
@@ -23,7 +23,12 @@ export default class RightPaneContainer extends FlexContainer {
|
||||
// right pane is displayed only if some child widget is active
|
||||
// we'll reevaluate the visibility based on events which are probable to cause visibility change
|
||||
// but these events needs to be finished and only then we check
|
||||
promise.then(() => this.reevaluateIsEnabledCommand());
|
||||
if (promise) {
|
||||
promise.then(() => this.reevaluateIsEnabledCommand());
|
||||
}
|
||||
else {
|
||||
this.reevaluateIsEnabledCommand();
|
||||
}
|
||||
}
|
||||
|
||||
return promise;
|
||||
|
||||
Reference in New Issue
Block a user