Repository navigation
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
More important... |
…er setup The iOS file dialog takes the suggested file name from the path passed to QFileDialog::getSaveFileName() and falls back to "Untitled" without an extension. The load dialog filters for *.jch, so a setup saved on iOS could not be loaded again without renaming the file first. Pass a default name that carries the suffix. The save dialog hides the known suffix from the text field, so the user still sees "MixerSetup", but the file is written as MixerSetup.jch.
1470602 to
3143d2d
Compare
Short description of changes
Suggest a file name carrying the
.jchsuffix when saving the mixer channel setup on iOS, so that the saved file can be loaded again.QFileDialog::getSaveFileName()on iOS derives the suggested name from the path it is given, and falls back toUntitled— without an extension. The load dialog filters for*.jch, so a setup saved on iOS was written asUntitledand could not be selected again in the load dialog without renaming it. On iOS the save sheet still showsMixerSetup, because the suffix of a known type is hidden from the text field, but the file is written asMixerSetup.jch.The default name is only passed on iOS, so the initial directory behaviour on the other platforms is unchanged.
CHANGELOG: iOS: Fixed mixer channel setups being saved without the file suffix, which made them impossible to load again
Context: Fixes an issue?
Fixes #3994 (part of the mixer channel setup item).
While investigating this I found that my original claim in #3994 was partly wrong: the document picker does accept
.jchfiles, and loading works. The earlier test file was namedmix1.jchjch, which is not a.jchfile, so the picker correctly greyed it out. The only real problem was the name used when saving.Measured on the iPad Pro 11-inch simulator (iOS 27.2), Qt 6.11.1:
UntitledMixerSetupUntitled(no suffix)MixerSetup.jchDoes this change need documentation? What needs to be documented and how?
No.
Status of this Pull Request
Working implementation.
What is missing until this pull request can be merged?
maindoes not launch on iOS with Qt 6 without it.MixerSetup.jchfrom the same dialog.