mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-12-14 20:16:28 +00:00
remove all stupid canLaunchUrl
This commit is contained in:
@@ -607,7 +607,6 @@ class _GeneralState extends State<_General> {
|
|||||||
bool user_dir_exists = await Directory(user_dir).exists();
|
bool user_dir_exists = await Directory(user_dir).exists();
|
||||||
bool root_dir_exists =
|
bool root_dir_exists =
|
||||||
showRootDir ? await Directory(root_dir).exists() : false;
|
showRootDir ? await Directory(root_dir).exists() : false;
|
||||||
// canLaunchUrl blocked on windows portable, user SYSTEM
|
|
||||||
return {
|
return {
|
||||||
'user_dir': user_dir,
|
'user_dir': user_dir,
|
||||||
'root_dir': root_dir,
|
'root_dir': root_dir,
|
||||||
|
|||||||
@@ -782,9 +782,7 @@ class _SettingsState extends State<SettingsPage> with WidgetsBindingObserver {
|
|||||||
tiles: [
|
tiles: [
|
||||||
SettingsTile(
|
SettingsTile(
|
||||||
onPressed: (context) async {
|
onPressed: (context) async {
|
||||||
if (await canLaunchUrl(Uri.parse(url))) {
|
await launchUrl(Uri.parse(url));
|
||||||
await launchUrl(Uri.parse(url));
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
title: Text(translate("Version: ") + version),
|
title: Text(translate("Version: ") + version),
|
||||||
value: Padding(
|
value: Padding(
|
||||||
@@ -928,9 +926,7 @@ void showAbout(OverlayDialogManager dialogManager) {
|
|||||||
InkWell(
|
InkWell(
|
||||||
onTap: () async {
|
onTap: () async {
|
||||||
const url = 'https://rustdesk.com/';
|
const url = 'https://rustdesk.com/';
|
||||||
if (await canLaunchUrl(Uri.parse(url))) {
|
await launchUrl(Uri.parse(url));
|
||||||
await launchUrl(Uri.parse(url));
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: EdgeInsets.symmetric(vertical: 8),
|
padding: EdgeInsets.symmetric(vertical: 8),
|
||||||
|
|||||||
Reference in New Issue
Block a user