From fc19335a26780cb730e5ca5e4e904324d9b19b8d Mon Sep 17 00:00:00 2001 From: Abdullah Atta Date: Thu, 13 Oct 2022 19:35:32 +0500 Subject: [PATCH] core: publish `appRefreshRequested` event globally --- packages/core/collections/shortcuts.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/core/collections/shortcuts.js b/packages/core/collections/shortcuts.js index 5891093c0..81212bbeb 100644 --- a/packages/core/collections/shortcuts.js +++ b/packages/core/collections/shortcuts.js @@ -18,7 +18,7 @@ along with this program. If not, see . */ import Collection from "./collection"; -import { EVENTS } from "../common"; +import { EV, EVENTS } from "../common"; /** * @typedef {{ @@ -170,7 +170,6 @@ export default class Shortcuts extends Collection { await this._collection.removeItem(shortcut.id); } - if (oldShortcuts.length > 0) - this._db.eventManager.publish(EVENTS.appRefreshRequested); + if (oldShortcuts.length > 0) EV.publish(EVENTS.appRefreshRequested); } }