fix:The server detail page failed to correctly display server_scheme from the saved config.json.
This commit is contained in:
+3
-1
@@ -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();
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user