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:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user