mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-08 08:04:08 +02:00
Fix bad function call in data export cancel.
This commit is contained in:
parent
34b0f6f014
commit
9b57725b8c
1 changed files with 3 additions and 1 deletions
|
@ -301,7 +301,9 @@ void PanelController::stopWithConfirmation(FnMut<void()> callback) {
|
||||||
if (!_state.is<ProcessingState>()) {
|
if (!_state.is<ProcessingState>()) {
|
||||||
LOG(("Export Info: Stop Panel Without Confirmation."));
|
LOG(("Export Info: Stop Panel Without Confirmation."));
|
||||||
stopExport();
|
stopExport();
|
||||||
callback();
|
if (callback) {
|
||||||
|
callback();
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
auto stop = [=, callback = std::move(callback)]() mutable {
|
auto stop = [=, callback = std::move(callback)]() mutable {
|
||||||
|
|
Loading…
Add table
Reference in a new issue