ask_user_for_prefered_browser function
Implementation
Future<String> ask_user_for_prefered_browser() async {
Show.warning("could not find", "edge browser", "at default path");
final response = await Ask.confirmation("nobody ", "can download",
"a local copy of browser for you", "would you like to proceed?");
if (response) {
Show.info("downloading", "edge browser", "for you");
final download = await prepare_local_chromium();
if (download) {
return LOCAL_EDGE_PATH;
} else {
Show.error("could not", "download", "edge browser");
return "";
}
} else {
Show.error("no browser", "no automation");
return "";
}
}