Skip to content

Commit

Permalink
#113 - Move the database init code
Browse files Browse the repository at this point in the history
  • Loading branch information
estruyf committed Sep 27, 2021
1 parent 221f962 commit c6e3753
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands/Dashboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ export class Dashboard {
* Init the dashboard
*/
public static async init() {
this.mediaLib = MediaLibrary.getInstance();

const openOnStartup = SettingsHelper.get(SETTINGS_DASHBOARD_OPENONSTART);
if (openOnStartup) {
Dashboard.open();
Expand All @@ -54,6 +52,8 @@ export class Dashboard {
* Open or reveal the dashboard
*/
public static async open(data?: DashboardData) {
this.mediaLib = MediaLibrary.getInstance();

Dashboard._viewData = data;

if (Dashboard.isOpen) {
Expand Down

0 comments on commit c6e3753

Please sign in to comment.