Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 3c7b6741f5 |
+1
-1
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"id": "waypoint-sidebar",
|
||||
"name": "Waypoint Sidebar",
|
||||
"version": "1.5.0",
|
||||
"version": "1.5.1",
|
||||
"minAppVersion": "0.16.3",
|
||||
"description": "Calendar, recent files, and custom bookmarks sidebar.",
|
||||
"author": "Olivier",
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "waypoint",
|
||||
"version": "1.5.0",
|
||||
"version": "1.5.1",
|
||||
"description": "Calendar, recent files, and custom bookmarks sidebar.",
|
||||
"main": "main.js",
|
||||
"scripts": {
|
||||
|
||||
@@ -199,6 +199,10 @@ export default class WaypointPlugin extends Plugin {
|
||||
const saved = await this.loadData() as Record<string, unknown> | null;
|
||||
const s = (saved?.settings || {}) as Partial<WaypointSettings>;
|
||||
this.settings = Object.assign({}, DEFAULT_SETTINGS, s);
|
||||
// Deep merge nested objects that might be missing new fields
|
||||
this.settings.recentFiles = Object.assign({}, DEFAULT_SETTINGS.recentFiles, s.recentFiles || {});
|
||||
this.settings.calendar = Object.assign({}, DEFAULT_SETTINGS.calendar, s.calendar || {});
|
||||
this.settings.display = Object.assign({}, DEFAULT_SETTINGS.display, s.display || {});
|
||||
}
|
||||
|
||||
async saveSettings(): Promise<void> {
|
||||
|
||||
@@ -241,7 +241,7 @@ export class WaypointView extends ItemView {
|
||||
}
|
||||
|
||||
// ── Type filter bar ──
|
||||
const configuredTags = this.plugin.settings.recentFiles.filterTags;
|
||||
const configuredTags = this.plugin.settings.recentFiles.filterTags || [];
|
||||
let typeCounts: Record<string, number> = {};
|
||||
|
||||
if (configuredTags.length > 0) {
|
||||
|
||||
Reference in New Issue
Block a user