opt.: speed up docker page

This commit is contained in:
lollipopkit
2024-06-01 22:36:02 +08:00
parent 8953f63197
commit d1f14bee59
17 changed files with 133 additions and 132 deletions

View File

@@ -461,14 +461,12 @@ class _SettingPageState extends State<SettingPage> {
_setting.fontPath.put(path);
} else {
final fontFile = File(path);
final newPath = '${Paths.fontPath}/${path.split('/').last}';
await fontFile.copy(newPath);
_setting.fontPath.put(newPath);
await fontFile.copy(Paths.font);
_setting.fontPath.put(Paths.font);
}
context.pop();
RebuildNodes.app.rebuild();
return;
}
Widget _buildTermFontSize() {