Various fixes

This commit is contained in:
Caten
2024-03-10 18:20:48 +08:00
parent 231d1167e0
commit b50622787d
4 changed files with 5 additions and 5 deletions

View File

@@ -180,7 +180,7 @@ class _SettingPageState extends State<SettingPage> {
);
return;
}
FlutterClipboard.copy((Util.getCurrentProp("vncUrl") as String).replaceFirst(RegExp.escape("localhost"), ip)).then((value) {
FlutterClipboard.copy((Util.getCurrentProp("vncUrl") as String).replaceAll(RegExp.escape("localhost"), ip)).then((value) {
ScaffoldMessenger.of(context).hideCurrentSnackBar();
ScaffoldMessenger.of(context).showSnackBar(
const SnackBar(content: Text("已复制分享链接"))