mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Removed mutable lambdas from export controller.
This commit is contained in:
@@ -67,7 +67,7 @@ bool Manager::inProgress(not_null<Main::Session*> session) const {
|
||||
return _panel && (&_panel->session() == session);
|
||||
}
|
||||
|
||||
void Manager::stopWithConfirmation(FnMut<void()> callback) {
|
||||
void Manager::stopWithConfirmation(Fn<void()> callback) {
|
||||
if (!_panel) {
|
||||
callback();
|
||||
return;
|
||||
|
||||
@@ -38,7 +38,7 @@ public:
|
||||
[[nodiscard]] rpl::producer<View::PanelController*> currentView() const;
|
||||
[[nodiscard]] bool inProgress() const;
|
||||
[[nodiscard]] bool inProgress(not_null<Main::Session*> session) const;
|
||||
void stopWithConfirmation(FnMut<void()> callback);
|
||||
void stopWithConfirmation(Fn<void()> callback);
|
||||
void stop();
|
||||
|
||||
private:
|
||||
|
||||
@@ -329,7 +329,7 @@ void PanelController::showProgress() {
|
||||
_panel->setHideOnDeactivate(true);
|
||||
}
|
||||
|
||||
void PanelController::stopWithConfirmation(FnMut<void()> callback) {
|
||||
void PanelController::stopWithConfirmation(Fn<void()> callback) {
|
||||
if (!v::is<ProcessingState>(_state)) {
|
||||
LOG(("Export Info: Stop Panel Without Confirmation."));
|
||||
stopExport();
|
||||
|
||||
@@ -43,7 +43,7 @@ public:
|
||||
}
|
||||
|
||||
void activatePanel();
|
||||
void stopWithConfirmation(FnMut<void()> callback = nullptr);
|
||||
void stopWithConfirmation(Fn<void()> callback = nullptr);
|
||||
|
||||
[[nodiscard]] rpl::producer<> stopRequests() const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user