fix:The server detail page failed to correctly display server_scheme from the saved config.json.

This commit is contained in:
2025-11-29 13:10:52 +09:00
parent 432eee153e
commit c879c4c0d9
+3 -1
View File
@@ -342,8 +342,10 @@ const App: React.FC = () => {
setCloudServerInfo(serverInfo); setCloudServerInfo(serverInfo);
if (serverInfo.libraryName) { if (serverInfo.libraryName) {
await apiService.updateLibrary(serverInfo.libraryName); await apiService.updateLibrary(serverInfo.libraryName);
setConnectionSettings(prev => prev ? { ...prev, libraryName: serverInfo.libraryName } : prev);
} }
// Reload settings to ensure we have the latest connection details (protocol, etc.)
await loadSettings();
// Refresh playlists after new connection // Refresh playlists after new connection
refreshCloud(); refreshCloud();
}; };