Notice dialog when opening any link outside PrusaSlicer

This commit is contained in:
David Kocik
2021-08-25 15:07:30 +02:00
parent 756daa0164
commit 6c048a4b7f
6 changed files with 27 additions and 10 deletions

View File

@@ -236,8 +236,7 @@ bool tags_check(const std::string& disabled_tags, const std::string& enabled_tag
}
void launch_browser_if_allowed(const std::string& url)
{
if (wxGetApp().app_config->get("suppress_hyperlinks") != "1")
wxLaunchDefaultBrowser(url);
wxGetApp().open_browser_with_warning_dialog(url);
}
} //namespace
HintDatabase::~HintDatabase()