Skip to content

Commit

Permalink
fix sysproc
Browse files Browse the repository at this point in the history
  • Loading branch information
dpolakovics committed Nov 8, 2024
1 parent f0b7f47 commit 9738165
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
5 changes: 0 additions & 5 deletions internal/logic/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import (
"sort"
"strconv"
"strings"
"syscall"

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

func getSysProcAttr() *syscall.SysProcAttr {
return &syscall.SysProcAttr{}
}

func CombineFiles(folder1 string, folder2 string, outputFolder string, progress *widget.ProgressBar) error {
// Get list of audio files from both folders
files1, err := getAudioFiles(folder1)
Expand Down
11 changes: 11 additions & 0 deletions internal/logic/sysproc_default.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// +build !windows

package logic

import (
"syscall"
)

func getSysProcAttr() *syscall.SysProcAttr {
return &syscall.SysProcAttr{}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ import (
)

func getSysProcAttr() *syscall.SysProcAttr {
return &syscall.SysProcAttr{Hidewindow: true}
return &syscall.SysProcAttr{HideWindow: true}
}

0 comments on commit 9738165

Please sign in to comment.