mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Move MTP::Instance to Main::Account.
This commit is contained in:
@@ -108,7 +108,7 @@ auto GenerateCodes() {
|
||||
codes.emplace(qsl("endpoints"), [] {
|
||||
FileDialog::GetOpenPath(Core::App().getFileDialogParent(), "Open DC endpoints", "DC Endpoints (*.tdesktop-endpoints)", [](const FileDialog::OpenResult &result) {
|
||||
if (!result.paths.isEmpty()) {
|
||||
if (!Core::App().mtp()->dcOptions()->loadFromFile(result.paths.front())) {
|
||||
if (!Core::App().dcOptions()->loadFromFile(result.paths.front())) {
|
||||
Ui::show(Box<InformBox>("Could not load endpoints :( Errors in 'log.txt'."));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user