Refactor app initialization logic for release mode

This commit is contained in:
Bella 2025-02-10 16:55:10 +13:00
parent 6c93dd4296
commit 7252b66164
No known key found for this signature in database
GPG Key ID: 725FECA79EF56B97

View File

@ -33,11 +33,7 @@ struct MeloNXApp: App {
}
}
.onAppear {
#if RELEASE
initR()
#else
showed = true
#endif
}
.frame(maxWidth: .infinity, maxHeight: .infinity)
.background(Color.black.opacity(1))