Skip to content

Commit

Permalink
Fix the bug that some Windows users cannot open the application in v7…
Browse files Browse the repository at this point in the history
….4.6

修复v7.4.6版本,部分windows端用户无法打开应用的bug
  • Loading branch information
jiangtian616 committed Nov 5, 2023
1 parent d9fa66e commit 4c10c20
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions changelog/v7.4.7+146.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
- 修复v7.4.6版本,部分windows端用户无法打开应用的bug
- 优化桌面端保存至图库时的图片命名规则
- 桌面端使用新的窗口组件
- 桌面端支持F11全屏
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/src/setting/super_resolution_setting.dart
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ class SuperResolutionSetting {

static _initFromMap(Map<String, dynamic> 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;
}
}

0 comments on commit 4c10c20

Please sign in to comment.