Skip to content

Allow selecting multiple files in interactive dialog - #32674

Merged
igorkorsukov merged 1 commit into
musescore:masterfrom
grliszas14:open_multiple_files
Mar 25, 2026
Merged

igorkorsukov merged 1 commit into
musescore:masterfrom
grliszas14:open_multiple_files

Conversation

@grliszas14

Copy link
Copy Markdown
Contributor

Resolves: audacity/audacity#10265

Added a function allowing to select multiple files in interactive dialog

  • I signed the CLA
  • The title of the PR describes the problem it addresses
  • Each commit's message describes its purpose and effects, and references the issue it resolves
  • If changes are extensive, there is a sequence of easily reviewable commits
  • The code in the PR follows the coding rules
  • There are no unnecessary changes
  • The code compiles and runs on my machine, preferably after each commit individually
  • I created a unit test or vtest to verify the changes I made (if applicable)

@grliszas14
grliszas14 force-pushed the open_multiple_files branch from f92864d to f9b2c42 Compare March 18, 2026 12:36
@grliszas14
grliszas14 force-pushed the open_multiple_files branch from f9b2c42 to 695578a Compare March 18, 2026 14:08
@Eism

Eism commented Mar 18, 2026

Copy link
Copy Markdown
Collaborator

@zacjansheski please test that opening files works as expected (on each platform)

@zacjansheski

zacjansheski commented Mar 18, 2026 •

Copy link
Copy Markdown
Contributor

Opening file on Ubuntu does not work

Seems to only be an issue on Ubuntu, Windows and Mac OS work fine

Video shows opening a file on Master then attempting with this PR

Screencast.from.2026-03-18.11-19-41.mp4

@grliszas14
grliszas14 force-pushed the open_multiple_files branch from 695578a to 2cbfcf7 Compare March 19, 2026 08:14
@grliszas14

Copy link
Copy Markdown
Contributor Author

@Eism for a single-file mode (MuseScore case) fileUrls is undefined on Linux. Fixed it so onAccepted no longer assumes fileUrls exists.

@zacjansheski please re-test, should be fine now

@grliszas14
grliszas14 force-pushed the open_multiple_files branch 2 times, most recently from ea99153 to dfd513d Compare March 19, 2026 17:03
@grliszas14

Copy link
Copy Markdown
Contributor Author

Had to push additional tweak to make it work both in MuseScore and Audacity, ready to re-test

@@ -42,7 +42,21 @@ QtPlatform.FileDialog {
}

onAccepted: {
root.ret = { "errcode": 0, "value": root.currentFile.toString() }
if (root.fileMode === 1) {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can use FileDialog.OpenFiles

@grliszas14
grliszas14 force-pushed the open_multiple_files branch from dfd513d to 473a03b Compare March 20, 2026 11:43
@zacjansheski

Copy link
Copy Markdown
Contributor

Tested on MacOS Tahoe 26.2, Windows 11, Ubuntu 22.04.3. Approved

@igorkorsukov
igorkorsukov merged commit 53c4c80 into musescore:master Mar 25, 2026
12 checks passed
@grliszas14
grliszas14 deleted the open_multiple_files branch March 25, 2026 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The 'Open' command for Audacity 4 doesn't open audio files (AU3 does)

4 participants