diff options
| author | Fuwn <[email protected]> | 2025-06-16 09:46:15 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-06-16 09:46:15 -0700 |
| commit | fa46849db101860c58b84d132ec48e9d06c4c7e0 (patch) | |
| tree | b1b2f679c7a6f9042b8047cc838615ae72e12131 | |
| parent | feat: Development commit (diff) | |
| download | sora-testing-fa46849db101860c58b84d132ec48e9d06c4c7e0.tar.xz sora-testing-fa46849db101860c58b84d132ec48e9d06c4c7e0.zip | |
feat: Development commit
| -rw-r--r-- | Sora/Views/MainView.swift | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Sora/Views/MainView.swift b/Sora/Views/MainView.swift index 81cede8..f939b8f 100644 --- a/Sora/Views/MainView.swift +++ b/Sora/Views/MainView.swift @@ -22,6 +22,13 @@ struct MainView: View { } .onAppear(perform: initializeManager) .onChange(of: settings.providerCredentials) { initializeManager() } + #if os(macOS) + .onChange(of: selectedTab) { _, newValue in + if newValue == 0 { + initializeManager() + } + } + #endif } @ViewBuilder private var tabViewContent: some View { |