Use UrlClickHandler::Open instead of File::OpenUrl

This commit is contained in:
Ilya Fedin
2020-10-29 01:29:48 +04:00
committed by John Preston
parent bbc59c1a99
commit bb94507af1
4 changed files with 5 additions and 7 deletions
+1 -2
View File
@@ -14,7 +14,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "ui/widgets/buttons.h"
#include "ui/widgets/labels.h"
#include "ui/text/text_utilities.h"
#include "core/file_utilities.h"
#include "base/platform/base_platform_info.h"
#include "core/click_handler_types.h"
#include "core/update_checker.h"
@@ -108,7 +107,7 @@ void AboutBox::showVersionHistory() {
Ui::show(Box<InformBox>("The link to the current private alpha version of Telegram Desktop was copied to the clipboard."));
} else {
File::OpenUrl(qsl("https://desktop.telegram.org/changelog"));
UrlClickHandler::Open(qsl("https://desktop.telegram.org/changelog"));
}
}