diff --git a/package.json b/package.json index 43ee59c..f8807e8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tongfang-utility-ng", - "version": "4.0.2", + "version": "4.0.3", "main": "index.js", "author": "kirainmoe ", "license": "MIT", diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index 84b144f..1922d92 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -3104,7 +3104,7 @@ dependencies = [ [[package]] name = "tongfang-utility" -version = "4.0.2" +version = "4.0.3" dependencies = [ "cc", "color-thief", diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index 7ceccc7..1020017 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -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 = "" diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index d38e260..9f23034 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -1,7 +1,7 @@ { "package": { "productName": "Tongfang Utility", - "version": "4.0.2" + "version": "4.0.3" }, "build": { "distDir": "../dist", diff --git a/src/common/appconfig.ts b/src/common/appconfig.ts index db2be1f..d36fd97 100644 --- a/src/common/appconfig.ts +++ b/src/common/appconfig.ts @@ -1,7 +1,7 @@ const appConfig = { appName: 'Tongfang Utility', - version: '4.0.2', - build: 2111050, + version: '4.0.3', + build: 2111060, }; export default appConfig; diff --git a/src/components/config-page/personalize.tsx b/src/components/config-page/personalize.tsx index f7dd96a..e6fc1cf 100644 --- a/src/components/config-page/personalize.tsx +++ b/src/components/config-page/personalize.tsx @@ -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) {