Skip to content

Commit 9738165

Browse files
committed
fix sysproc
1 parent f0b7f47 commit 9738165

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

internal/logic/sync.go

-5
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import (
1212
"sort"
1313
"strconv"
1414
"strings"
15-
"syscall"
1615

1716
"fyne.io/fyne/v2/widget"
1817
"github.com/dhowden/tag"
@@ -41,10 +40,6 @@ func getAudioFiles(folder string) ([]string, error) {
4140
return audioFiles, nil
4241
}
4342

44-
func getSysProcAttr() *syscall.SysProcAttr {
45-
return &syscall.SysProcAttr{}
46-
}
47-
4843
func CombineFiles(folder1 string, folder2 string, outputFolder string, progress *widget.ProgressBar) error {
4944
// Get list of audio files from both folders
5045
files1, err := getAudioFiles(folder1)

internal/logic/sysproc_default.go

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// +build !windows
2+
3+
package logic
4+
5+
import (
6+
"syscall"
7+
)
8+
9+
func getSysProcAttr() *syscall.SysProcAttr {
10+
return &syscall.SysProcAttr{}
11+
}

internal/logic/sync_windows.go internal/logic/sysproc_windows.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ import (
77
)
88

99
func getSysProcAttr() *syscall.SysProcAttr {
10-
return &syscall.SysProcAttr{Hidewindow: true}
10+
return &syscall.SysProcAttr{HideWindow: true}
1111
}

0 commit comments

Comments
 (0)