feat: more work on calendar

This commit is contained in:
2026-02-22 14:31:31 +01:00
parent 64e1fb3d90
commit 947b1250e3
21 changed files with 191 additions and 9 deletions

View File

@@ -361,6 +361,17 @@ const App: React.FC = () => {
}) || (() => {})
);
unsubscribers.push(
window.electronAPI?.on('menu:regenerateCalendar', async () => {
try {
await window.electronAPI?.blog.regenerateCalendar();
} catch (error) {
console.error('Calendar regeneration failed:', error);
showToast.error(tr('app.calendarRegenerationFailed'));
}
}) || (() => {})
);
unsubscribers.push(
window.electronAPI?.on('menu:validateSite', () => {
const validateAndOpen = async () => {