You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm on MacOS Big Sur. Everything works great until the OK button is pressed and I try to print the file path. My example looks very similar to what you have in your example.
// OpenPDFInput opens the PDF that needs to be inverted.
func (gui *GUI) OpenPDFInput() {
fileDialog := widgets.NewQFileDialog2(gui.Window, "Open PDF", gui.UserInfo.HomeDir, "")
fileDialog.SetAcceptMode(widgets.QFileDialog__AcceptOpen)
fileDialog.SetFileMode(widgets.QFileDialog__ExistingFile)
fileDialog.SetMimeTypeFilters([]string{"application/pdf"})
if fileDialog.Exec() == int(widgets.QDialog__Accepted) {
fmt.Printf("%v\n", fileDialog.SelectedFiles()[0])
}
}
As soon as fileDialog.SelectedFiles() runs, I get a panic. I am not sure why though. I may possibly be doing something wrong, but my example is very similar to yours (and everything else in my program works fine). Here is the error:
I'm on MacOS Big Sur. Everything works great until the OK button is pressed and I try to print the file path. My example looks very similar to what you have in your example.
As soon as fileDialog.SelectedFiles() runs, I get a panic. I am not sure why though. I may possibly be doing something wrong, but my example is very similar to yours (and everything else in my program works fine). Here is the error:
The text was updated successfully, but these errors were encountered: