fix bug with month grid, remove logs

This commit is contained in:
marlon-erler
2026-03-31 19:52:17 +00:00
parent 264f11e46c
commit e138367f4a
6 changed files with 2264 additions and 2312 deletions
+2 -4
View File
@@ -65,17 +65,15 @@ export default class CalendarModel {
year == date.getFullYear() && month == date.getMonth() + 1;
// get data for offset
date.setFullYear(year);
date.setMonth(month - 1);
date.setDate(1);
date.setMonth(month - 1);
date.setFullYear(year);
const firstWeekdayOfMonth = date.getDay();
const firstDayOfWeekSetting: number = parseInt(
this.settingsModel.firstDayOfWeek
);
console.log(firstWeekdayOfMonth, firstDayOfWeekSetting);
const offset: number =
firstWeekdayOfMonth < firstDayOfWeekSetting
? 7 - firstDayOfWeekSetting
+1 -1
View File
@@ -72,7 +72,7 @@ export default class FileTransferModel {
// sending
sendFiles = (
directoryPaths: BuiltinIterator<string[]>,
directoryPaths: IteratorObject<string[]>,
callback: (path: string) => void
): void => {
for (const directoryPath of directoryPaths) {