Fix droppable signature and dependency handling
This commit is contained in:
parent
c0081e3693
commit
fb5c63cd29
|
|
@ -9,6 +9,7 @@ import (
|
|||
"fyne.io/fyne/v2"
|
||||
"fyne.io/fyne/v2/canvas"
|
||||
"fyne.io/fyne/v2/container"
|
||||
"fyne.io/fyne/v2/driver/desktop"
|
||||
"fyne.io/fyne/v2/theme"
|
||||
"fyne.io/fyne/v2/widget"
|
||||
"git.leaktechnologies.dev/stu/VideoTools/internal/logging"
|
||||
|
|
@ -288,19 +289,16 @@ func (d *Droppable) CreateRenderer() fyne.WidgetRenderer {
|
|||
}
|
||||
}
|
||||
|
||||
// DraggedOver highlights when drag is over (optional)
|
||||
func (d *Droppable) DraggedOver(pos fyne.Position) {
|
||||
_ = pos
|
||||
}
|
||||
// Dragged satisfies desktop.DropTarget; no-op highlight for now.
|
||||
func (d *Droppable) Dragged(_ *desktop.DragEvent) {}
|
||||
|
||||
// DraggedOut clears highlight (optional)
|
||||
func (d *Droppable) DraggedOut() {}
|
||||
|
||||
// Dropped handles drop events
|
||||
func (d *Droppable) Dropped(pos fyne.Position, items []fyne.URI) {
|
||||
_ = pos
|
||||
if d.onDropped != nil {
|
||||
d.onDropped(items)
|
||||
func (d *Droppable) Dropped(ev *desktop.DragEvent) {
|
||||
if d.onDropped != nil && ev != nil {
|
||||
d.onDropped(ev.URIs)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -29,17 +29,24 @@ echo ""
|
|||
cd "$PROJECT_ROOT"
|
||||
|
||||
echo "🧹 Cleaning previous builds and cache..."
|
||||
go clean -cache -modcache -testcache 2>/dev/null || true
|
||||
go clean -cache -testcache 2>/dev/null || true
|
||||
rm -f "$BUILD_OUTPUT" 2>/dev/null || true
|
||||
# Also clear build cache directory to avoid permission issues
|
||||
rm -rf "${GOCACHE:-$HOME/.cache/go-build}" 2>/dev/null || true
|
||||
echo "✓ Cache cleaned"
|
||||
echo ""
|
||||
|
||||
echo "⬇️ Downloading and verifying dependencies..."
|
||||
go mod download
|
||||
go mod verify
|
||||
echo "✓ Dependencies verified"
|
||||
echo "⬇️ Downloading and verifying dependencies (skips if already cached)..."
|
||||
if go list -m all >/dev/null 2>&1; then
|
||||
echo "✓ Dependencies already present"
|
||||
else
|
||||
if go mod download && go mod verify; then
|
||||
echo "✓ Dependencies downloaded and verified"
|
||||
else
|
||||
echo "❌ Failed to download/verify modules. Check network/GOPROXY or try again."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
echo ""
|
||||
|
||||
echo "🔨 Building VideoTools..."
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user