Afbeelding slepen op een documenttabblad crasht op deckNotifier #1660
Labels
No labels
accepted
bug
declined
docs
duplicate
enhancement
good first issue
in-progress
needs-info
privacy
security
triage
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
LibreKAT/Ocideck#1660
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Wat er misgaat
Een
.png(of andere afbeelding) op het venster slepen terwijl een documenttabblad actief is, gooitStateError: deckNotifier opgevraagd op een documenttabblad.Waar het zit
lib/widgets/app_shell.dart:_adoptDroppedImageleestcurrent?.deckNotifier(alleencurrentis nullable)._addImagesToActiveDeckroept daarnatab.deckNotifierentab.editorNotifieronvoorwaardelijk aan.De snackbar Open eerst een presentatie… komt alleen als er geen open tabblad is, niet als het open tabblad een document is.
Stappen
Wat het met het formaat doet
Niets; crash vóór import. Op een presentatietabblad werkt het pad wél.
Regressie
Widget- of unit-test: actief documenttabblad + drop → geen
deckNotifier, wél invoegen in het document of een eerlijke weigering zonder exception.Verwante landmijn: #1636 (zelfde getter op sluiten).