mirror of
https://github.com/taigrr/wails.git
synced 2026-04-17 04:05:12 -07:00
Initial support for OpenDialog
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
package goruntime
|
||||
|
||||
import (
|
||||
b64 "encoding/base64"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
|
||||
"github.com/wailsapp/wails/v2/internal/crypto"
|
||||
@@ -68,13 +66,3 @@ func (r *dialog) Open(dialogOptions *options.OpenDialog) []string {
|
||||
|
||||
return result.Data().([]string)
|
||||
}
|
||||
|
||||
func optionsToBase64(dialogOptions *options.OpenDialog) (string, error) {
|
||||
|
||||
encoded, err := json.Marshal(dialogOptions)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
||||
return b64.StdEncoding.EncodeToString(encoded), nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user