Skip to content

Allow creating new folders in the Build tab's Save to dialog - #477

Closed
SifatTaj wants to merge 1 commit into
LNPANDY:mainfrom
SifatTaj:build-save-new-folder
Closed

SifatTaj wants to merge 1 commit into
LNPANDY:mainfrom
SifatTaj:build-save-new-folder

Conversation

@SifatTaj

@SifatTaj SifatTaj commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Fix or feature

  • Fix
  • Feature

What and why

When configuring an output directory under the Build tab ("Save to"), the folder selection panel opened by BuildModel.chooseBuildFolder() did not allow creating new directories. Users had to switch to Finder to create a target build folder beforehand.

Setting canCreateDirectories = true on the NSOpenPanel enables the "New Folder" button inside the open panel so users can create their build directory directly from the file dialog.

Checked

  • Tests: cd frontend && swift test (all 697 tests passed, including SourceSizeTests)
  • Run on a device or Mac: Tested locally on macOS

Screenshots

Before

Screenshot 2026-11-01 at 10 39 38 PM

After

Screenshot 2026-11-01 at 10 37 07 PM

Scope

  • No engine file (dm/, scripts/, docs/, ref/) is added to the repository
  • No keys, game files or data extracted from a game in the change or the attachments

@github-actions github-actions Bot added the launcher The NX2Apple launcher app label Nov 2, 2026
@v0lumehi v0lumehi added this to the v1.0.2 milestone Nov 2, 2026
@v0lumehi

v0lumehi commented Nov 2, 2026

Copy link
Copy Markdown
Collaborator

Thanks @SifatTaj, this is a good small fix. ContentView.swift is removed by my launcher refactor, which is going into main now. So I will apply the same line in the new file and credit you as co-author, or you can wait for the refactor and update the PR. Tell me which you prefer.

@SifatTaj

SifatTaj commented Nov 2, 2026

Copy link
Copy Markdown
Contributor Author

Hi, you can update the file and credit me as a co-author.

Thanks!

@v0lumehi

v0lumehi commented Nov 2, 2026

Copy link
Copy Markdown
Collaborator

Thanks @SifatTaj, I will do that once the launcher refactor is in main, with you as co-author.

@v0lumehi

v0lumehi commented Nov 2, 2026

Copy link
Copy Markdown
Collaborator

Thanks @SifatTaj. Your change is in main as #522: canCreateDirectories = true on the Save to panel, in its new place after the launcher split, with a test. You are the co-author of the commit. I close this PR as done.

@v0lumehi v0lumehi closed this Nov 2, 2026
Dino0005 pushed a commit to Dino0005/NX2Apple that referenced this pull request Nov 2, 2026
The folder panel of Save to could only pick a folder that exists. The panel is
now made by LauncherStores.buildFolderPanel() with canCreateDirectories on, and
a test checks its settings. Fixes the same thing as LNPANDY#477 by @SifatTaj, whose
change was in ContentView.swift, which the launcher split removed.

Co-authored-by: SifatTaj <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

launcher The NX2Apple launcher app

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants