mirror of
https://github.com/devonthesofa/obsidian-note-status.git
synced 2026-07-22 12:30:24 +00:00
fix: update status pane settings
This commit is contained in:
parent
b19a37bb07
commit
4169f681fa
1 changed files with 6 additions and 3 deletions
9
main.ts
9
main.ts
|
|
@ -39,6 +39,8 @@ export default class NoteStatus extends Plugin {
|
|||
metadataIntegration: MetadataIntegration;
|
||||
workspaceIntegration: WorkspaceIntegration;
|
||||
|
||||
statusPane: StatusPaneViewController;
|
||||
|
||||
async onload() {
|
||||
try {
|
||||
await this.loadSettings();
|
||||
|
|
@ -71,7 +73,8 @@ export default class NoteStatus extends Plugin {
|
|||
private registerViews() {
|
||||
// Register status pane view
|
||||
this.registerView('status-pane', (leaf) => {
|
||||
return new StatusPaneViewController(leaf, this);
|
||||
this.statusPane = new StatusPaneViewController(leaf, this);
|
||||
return this.statusPane;
|
||||
});
|
||||
|
||||
// Add ribbon icon
|
||||
|
|
@ -251,8 +254,8 @@ export default class NoteStatus extends Plugin {
|
|||
//this.metadataIntegration.updateSettings(this.settings);
|
||||
this.toolbarIntegration.updateSettings(this.settings);
|
||||
this.workspaceIntegration.updateSettings(this.settings);
|
||||
|
||||
// // Actualizar componentes UI
|
||||
this.statusPane.updateSettings(this.settings);
|
||||
// Actualizar componentes UI
|
||||
this.statusBar.updateSettings(this.settings);
|
||||
this.statusDropdown.updateSettings(this.settings)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue