diff --git a/author_module.go b/author_module.go index 436510f..36b0aa5 100644 --- a/author_module.go +++ b/author_module.go @@ -1474,7 +1474,7 @@ func authorDefaultOutputDir(outputType string) string { if err != nil || home == "" { home = "." } - dir := filepath.Join(home, "Videos") + dir := filepath.Join(home, "Videos", "VideoTools") if strings.EqualFold(outputType, "iso") { return filepath.Join(dir, "ISO_Convert") } diff --git a/rip_module.go b/rip_module.go index e78f700..b71bd57 100644 --- a/rip_module.go +++ b/rip_module.go @@ -226,6 +226,14 @@ func buildRipView(state *appState) fyne.CanvasObject { state.persistRipConfig() }) + clearISOBtn := widget.NewButton("Clear ISO", func() { + state.ripSourcePath = "" + state.ripOutputPath = "" + sourceEntry.SetText("") + outputEntry.SetText("") + }) + clearISOBtn.Importance = widget.LowImportance + controls := container.NewVBox( widget.NewLabelWithStyle("Source", fyne.TextAlignLeading, fyne.TextStyle{Bold: true}), ui.NewDroppable(sourceEntry, func(items []fyne.URI) { @@ -237,6 +245,7 @@ func buildRipView(state *appState) fyne.CanvasObject { outputEntry.SetText(state.ripOutputPath) } }), + clearISOBtn, widget.NewLabelWithStyle("Format", fyne.TextAlignLeading, fyne.TextStyle{Bold: true}), formatSelect, widget.NewLabelWithStyle("Output", fyne.TextAlignLeading, fyne.TextStyle{Bold: true}), @@ -382,7 +391,7 @@ func defaultRipOutputPath(sourcePath, format string) string { if err != nil || home == "" { home = "." } - baseDir := filepath.Join(home, "Videos", "DVD_Rips") + baseDir := filepath.Join(home, "Videos", "VideoTools", "DVD_Rips") name := strings.TrimSuffix(filepath.Base(sourcePath), filepath.Ext(sourcePath)) if strings.EqualFold(name, "video_ts") { name = filepath.Base(filepath.Dir(sourcePath))