Support location picker on Linux.

This commit is contained in:
John Preston
2025-02-04 09:41:58 +04:00
parent 32b95f0d9a
commit b885779365
3 changed files with 12 additions and 4 deletions

View File

@@ -102,7 +102,11 @@ QString SiteNameFromUrl(const QString &url) {
}
bool ShowButton() {
static const auto Supported = Webview::NavigateToDataSupported();
static const auto Supported = [&] {
const auto availability = Webview::Availability();
return availability.customSchemeRequests
&& availability.customRangeRequests;
}();
return Supported;
}