Update hint text

This commit is contained in:
Caten
2025-09-10 20:22:41 +08:00
parent 8f26ed77e7
commit ed3ec63212
4 changed files with 12 additions and 3 deletions

View File

@@ -110,5 +110,6 @@
"updateRequest": "Please try to use the latest version. Visit the project address to check for the latest version.", "updateRequest": "Please try to use the latest version. Visit the project address to check for the latest version.",
"avncScreenResize": "Adaptive Screen Size", "avncScreenResize": "Adaptive Screen Size",
"avncResizeFactor": "Screen Scaling Ratio", "avncResizeFactor": "Screen Scaling Ratio",
"avncResizeFactorValue": "Current scaling is" "avncResizeFactorValue": "Current scaling is",
"recommendHidpi": "Recommended to enable HiDPI Support simultaneously"
} }

View File

@@ -110,5 +110,6 @@
"updateRequest": "请尽量使用最新版本。前往项目地址可查看最新版本。", "updateRequest": "请尽量使用最新版本。前往项目地址可查看最新版本。",
"avncScreenResize": "自适应屏幕尺寸", "avncScreenResize": "自适应屏幕尺寸",
"avncResizeFactor": "屏幕缩放比", "avncResizeFactor": "屏幕缩放比",
"avncResizeFactorValue": "当前缩放为" "avncResizeFactorValue": "当前缩放为",
"recommendHidpi": "推荐同步开启高分辨率支持"
} }

View File

@@ -110,5 +110,6 @@
"updateRequest": "請盡量使用最新版本。前往專案網址查看最新版本。", "updateRequest": "請盡量使用最新版本。前往專案網址查看最新版本。",
"avncScreenResize": "自適應螢幕尺寸", "avncScreenResize": "自適應螢幕尺寸",
"avncResizeFactor": "螢幕縮放比", "avncResizeFactor": "螢幕縮放比",
"avncResizeFactorValue": "目前縮放為" "avncResizeFactorValue": "目前縮放為",
"recommendHidpi": "推薦同步開啟高解析度支援"
} }

View File

@@ -463,6 +463,12 @@ sed -i -E "s@^(VNC_RESOLUTION)=.*@\\1=${w}x${h}@" \$(command -v startvnc)""");
if (!value && Util.getGlobal("dri3")) { if (!value && Util.getGlobal("dri3")) {
G.prefs.setBool("dri3", false); G.prefs.setBool("dri3", false);
} }
if (value) {
ScaffoldMessenger.of(context).hideCurrentSnackBar();
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(content: Text(AppLocalizations.of(context)!.recommendHidpi))
);
}
setState(() {}); setState(() {});
},), },),
const SizedBox.square(dimension: 16), const SizedBox.square(dimension: 16),