Combine startUrls and sendPaths

This commit allows to handle multiple URLs of all types as positional arguments simultaneously:
* tg:// links
* tonsite:// links
* interpret:// file paths
* generic file paths (to share files)

This allows to Drag'n'Drop files to the Telegram shortcut/binary.
This commit is contained in:
Ilya Fedin
2025-10-15 18:36:54 +00:00
committed by John Preston
parent f787e0fa1d
commit 5fbf280e4a
9 changed files with 90 additions and 152 deletions

View File

@@ -215,7 +215,7 @@ void MainWindow::clearPasscodeLock() {
_main->show();
updateControlsGeometry();
_main->showAnimated(std::move(oldContentCache), true);
Core::App().checkStartUrl();
Core::App().checkStartUrls();
}
}
@@ -285,7 +285,7 @@ void MainWindow::setupMain(
} else {
_main->activate();
}
Core::App().checkStartUrl();
Core::App().checkStartUrls();
}
fixOrder();
if (const auto strong = weakAnimatedLayer.get()) {