Skip to content

Commit

Permalink
fix: tfu-efi-smbios stores incorrect model index
Browse files Browse the repository at this point in the history
  • Loading branch information
kirainmoe committed Nov 5, 2021
1 parent 0d9330a commit a0ac0fc
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tongfang-utility-ng",
"version": "4.0.2",
"version": "4.0.3",
"main": "index.js",
"author": "kirainmoe <[email protected]>",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cargo-features = ["resolver"]

[package]
name = "tongfang-utility"
version = "4.0.2"
version = "4.0.3"
description = "A Utility built for hackintoshing Tongfang Laptops"
authors = ["Yume Akiyama"]
license = ""
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"package": {
"productName": "Tongfang Utility",
"version": "4.0.2"
"version": "4.0.3"
},
"build": {
"distDir": "../dist",
Expand Down
4 changes: 2 additions & 2 deletions src/common/appconfig.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const appConfig = {
appName: 'Tongfang Utility',
version: '4.0.2',
build: 2111050,
version: '4.0.3',
build: 2111060,
};

export default appConfig;
5 changes: 4 additions & 1 deletion src/components/config-page/personalize.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,10 @@ function Personalize() {
}
try {
const smbios = JSON.parse(info);
form.setFieldsValue(smbios);
form.setFieldsValue({
...smbios,
model: PlatformString.indexOf(smbios.model),
});
setSMBIOSSource(SMBIOSSource.LastGenerated);
return true;
} catch(err) {
Expand Down

0 comments on commit a0ac0fc

Please sign in to comment.