diff --git a/changelog/v7.4.7+146.md b/changelog/v7.4.7+146.md index 059c4a8f..d62743fc 100644 --- a/changelog/v7.4.7+146.md +++ b/changelog/v7.4.7+146.md @@ -1,3 +1,4 @@ +- 修复v7.4.6版本,部分windows端用户无法打开应用的bug - 优化桌面端保存至图库时的图片命名规则 - 桌面端使用新的窗口组件 - 桌面端支持F11全屏 @@ -7,6 +8,7 @@ ------------------------------------------------------------------------------------------ +- Fix the bug that some Windows users cannot open the application in v7.4.6 - Optimize the naming rule of images when saving on desktop - Use new window component on desktop - Support F11 to toggle full screen mode on desktop diff --git a/lib/src/setting/super_resolution_setting.dart b/lib/src/setting/super_resolution_setting.dart index ae0aa8be..8ac16c41 100644 --- a/lib/src/setting/super_resolution_setting.dart +++ b/lib/src/setting/super_resolution_setting.dart @@ -134,7 +134,7 @@ class SuperResolutionSetting { static _initFromMap(Map map) { modelDirectoryPath.value = map['modelDirectoryPath']; - model.value = ModelType.values[map['model']]; + model.value = map['model'] == null ? ModelType.CUGAN : ModelType.values[map['model']]; gpuId.value = map['gpuId'] ?? gpuId.value; } }