mirror of
https://gitlab.com/ryzen-controller-team/ryzen-controller.git
synced 2024-12-22 10:03:28 +07:00
fix: Unable to change language while loading system signature in some case.
This commit is contained in:
parent
df2d7d6357
commit
347b05bad7
@ -84,16 +84,17 @@ class App extends React.Component<{}, AppState> {
|
|||||||
.then((data: SysInfoState) => {
|
.then((data: SysInfoState) => {
|
||||||
data.signature = createMachineSignature(data);
|
data.signature = createMachineSignature(data);
|
||||||
data.permissiveSignature = createPermissiveMachineSignature(data);
|
data.permissiveSignature = createPermissiveMachineSignature(data);
|
||||||
this._isMounted && this.setState({ sysinfo: data });
|
if (this._isMounted) this.setState({ sysinfo: data });
|
||||||
})
|
})
|
||||||
.catch((error: string) => {
|
.catch((error: string) => {
|
||||||
this._isMounted &&
|
if (this._isMounted) {
|
||||||
this.setState({
|
this.setState({
|
||||||
sysinfo: {
|
sysinfo: {
|
||||||
...this.state.sysinfo,
|
...this.state.sysinfo,
|
||||||
error: error,
|
error: error,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
checkNewVersion();
|
checkNewVersion();
|
||||||
|
Loading…
Reference in New Issue
Block a user