[Update] Plugins: Add error handlings when network is not connected and failed to fetch plugins info.
Also add pending ui(TMP) while fetching.
This commit is contained in:
@@ -206,7 +206,12 @@ export const useReceiveRoutes = () => {
|
||||
"/set/data/main_window_geometry": () => {},
|
||||
"/run/open_filepath_logs": () => console.log("Opened Directory, Message Logs"),
|
||||
"/run/open_filepath_config_file": () => console.log("Opened Directory, Config File"),
|
||||
"/run/software_update_info": updateLatestSoftwareVersionInfo,
|
||||
"/run/software_update_info": (payload) => {
|
||||
updateLatestSoftwareVersionInfo(prev => ({
|
||||
is_update_available: payload.is_update_available,
|
||||
new_version: payload.new_version || prev.data.new_version,
|
||||
}));
|
||||
},
|
||||
"/run/connected_network": handleNetworkConnection,
|
||||
|
||||
// Main Page
|
||||
|
||||
Reference in New Issue
Block a user