2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Add some logs.

This commit is contained in:
John Preston
2018-06-24 03:15:12 +01:00
parent 2522e66969
commit fcd2e28abb
4 changed files with 22 additions and 0 deletions

View File

@@ -83,6 +83,7 @@ void Session::startExport() {
_exportPanel->stopRequests(
) | rpl::start_with_next([=] {
LOG(("Export Info: Stop requested."));
stopExport();
}, _export->lifetime());
}
@@ -129,6 +130,7 @@ void Session::stopExportWithConfirmation(FnMut<void()> callback) {
}
auto closeAndCall = [=, callback = std::move(callback)]() mutable {
auto saved = std::move(callback);
LOG(("Export Info: Stop With Confirmation."));
stopExport();
if (saved) {
saved();
@@ -139,6 +141,7 @@ void Session::stopExportWithConfirmation(FnMut<void()> callback) {
void Session::stopExport() {
if (_exportPanel) {
LOG(("Export Info: Destroying."));
_exportPanel = nullptr;
_exportViewChanges.fire(nullptr);
}