Skip to content

Commit

Permalink
#76 - presenting currently selected collection on boot
Browse files Browse the repository at this point in the history
  • Loading branch information
SoulKa committed Oct 18, 2024
1 parent c1ba2c7 commit 6c92e25
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/event/main-event-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ import { Buffer } from 'node:buffer';
import { PersistenceService } from '../persistence/service/persistence-service';
import { RufusObject } from 'shim/objects';
import * as console from 'node:console';
import { EnvironmentService } from 'main/environment/service/environment-service';

const persistenceService = PersistenceService.instance;
const environmentService = EnvironmentService.instance;

declare type AsyncFunction<R> = (...args: unknown[]) => Promise<R>;

Expand Down Expand Up @@ -68,7 +70,7 @@ export class MainEventService implements IEventService {
}

async loadCollection() {
return await persistenceService.loadDefaultCollection();
return environmentService.currentCollection;
}

async sendRequest(request: RufusRequest) {
Expand Down

0 comments on commit 6c92e25

Please sign in to comment.