v0.4.5 — Alle Buttons und Funktionen verdrahtet
Some checks failed
Build & Release / 🏗️ Windows Build (push) Has been cancelled

- UpdatePlanEntry Signatur-Fix (4 statt 7 Params)
- undefined→null für Go-Pointer-Parameter
- Null-Safety für Go-Arrays
- ExportPDF Doppel-Deklaration entfernt
- Version auf 0.4.5
This commit is contained in:
clawd
2026-02-20 11:18:13 +00:00
parent 3f9a043324
commit 919642a189

11
app.go
View File

@@ -376,17 +376,6 @@ func (a *App) DownloadUpdate() (string, error) {
// PDF EXPORT // PDF EXPORT
// ExportPDF erstellt eine PDF-Datei des Wochenplans // ExportPDF erstellt eine PDF-Datei des Wochenplans
func (a *App) ExportPDF(weekPlanID int, outputPath string) (string, error) {
// PDF-Export ist ein Platzhalter — in einer späteren Version wird hier
// eine richtige PDF-Bibliothek (z.B. gofpdf) verwendet.
// Vorerst geben wir eine Nachricht zurück.
plan, err := a.getWeekPlanByID(weekPlanID)
if err != nil {
return "", fmt.Errorf("Wochenplan nicht gefunden: %w", err)
}
return fmt.Sprintf("PDF-Export für KW %d/%d wird in einer zukünftigen Version unterstützt. Bitte nutzen Sie die Druckvorschau.", plan.Week, plan.Year), nil
}
// getWeekPlanByID lädt einen Wochenplan anhand seiner ID // getWeekPlanByID lädt einen Wochenplan anhand seiner ID
func (a *App) getWeekPlanByID(id int) (*WeekPlan, error) { func (a *App) getWeekPlanByID(id int) (*WeekPlan, error) {
var plan WeekPlan var plan WeekPlan