WIP
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import { SFPredicate, CreateMaxPayloadFromAnyObject } from 'snjs';
|
||||
import { AppStateEvents } from '../state';
|
||||
|
||||
export const PrefKeys = {
|
||||
TagsPanelWidth: 'tagsPanelWidth',
|
||||
@@ -26,16 +25,12 @@ export class PreferencesManager {
|
||||
) {
|
||||
this.application = application;
|
||||
this.appState = appState;
|
||||
application.onReady(() => {
|
||||
this.initialize();
|
||||
application.onUnlock(() => {
|
||||
this.streamPreferences();
|
||||
this.loadSingleton();
|
||||
});
|
||||
}
|
||||
|
||||
async initialize() {
|
||||
this.streamPreferences();
|
||||
await this.loadSingleton();
|
||||
}
|
||||
|
||||
streamPreferences() {
|
||||
this.application.streamItems({
|
||||
contentType: 'SN|UserPreferences',
|
||||
|
||||
Reference in New Issue
Block a user