Skip to content

Commit

Permalink
fix(Path View): 🐛 Redraw path after updating settings
Browse files Browse the repository at this point in the history
  • Loading branch information
SkepticMystic committed Aug 10, 2021
1 parent 90efb86 commit fa323b8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/BreadcrumbsSettingTab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -304,8 +304,7 @@ export class BreadcrumbsSettingTab extends PluginSettingTab {
.onChange(async (value) => {
plugin.settings.trailSeperator = value;
await plugin.saveSettings();
// BUG This doesn't seem to work... you still have to switch notes for it to redraw
await plugin.getActiveMatrixView().draw();
await plugin.drawTrail();
})
);

Expand All @@ -321,6 +320,7 @@ export class BreadcrumbsSettingTab extends PluginSettingTab {
.onChange(async (value) => {
plugin.settings.noPathMessage = value;
await plugin.saveSettings();
await plugin.drawTrail();
})
);

Expand All @@ -335,6 +335,7 @@ export class BreadcrumbsSettingTab extends PluginSettingTab {
.onChange(async (value) => {
plugin.settings.respectReadableLineLength = value;
await plugin.saveSettings();
await plugin.drawTrail();
})
);

Expand Down

0 comments on commit fa323b8

Please sign in to comment.