Skip to content

Play your own Switch games on iPhone/iPad — one-click macOS app, no terminal. | 把 Switch 游戏装进 iPhone:图形界面一键构建,不用命令行。Bring your own game.

Merge pull request #281 from LNPANDY/feat/launcher-roundup

LNPd2f69ca6ac79
diff --cc frontend/Sources/NSPortBuilder/LauncherView.swift
index 7ce37c3d,ab1add69..dc1fde07
--- a/frontend/Sources/NSPortBuilder/LauncherView.swift
+++ b/frontend/Sources/NSPortBuilder/LauncherView.swift
@@@ -190,10 -231,10 +233,12 @@@ struct ContentView: View
.onChange(of: m.repoPath) { _ in refreshArtwork(); if performStartupChecks { checkTools() } }
// A clone, pull or update check has finished (the automatic pull at launch among them): the checkout may have moved
.onReceive(m.$repoBusy.removeDuplicates().dropFirst()) { busy in if !busy && performStartupChecks { checkTools() } }
+ // The engine was made or moved by a sync (its HEAD is what ToolsAge compares)
+ .onReceive(m.$engineSyncing.removeDuplicates().dropFirst()) { syncing in if !syncing && performStartupChecks { checkTools() } }
.onChange(of: library.selectedID) { _ in resignNote = nil } // the last re-sign's note belongs to its game
+ .onChange(of: buildProgress) { progress in if m.running { DockProgress.update(progress) } }
.onReceive(m.$running.removeDuplicates()) { running in
+ if !running { DockProgress.update(nil) }
if running && activeBuildID == nil { activeBuildID = library.rememberInputs(m) }
if running && activeBuildID != nil { // the tools this build runs: a pull waits for the build (pullRepo, autoPull)
buildCommit = ""