warpdesign / react-explorer

File manager written in TypeScript, React, Blueprint and packaged with Electron
MIT License
245 stars 35 forks source link

SettingsState: put lang change into runInAction() #380

Closed warpdesign closed 1 year ago

warpdesign commented 1 year ago

This prevents a warning from MobX since state cannot be modified out of an action. Not sure why this happens since setLanguage is already set as action: I guess it has something to do with the fact that it's an async function.