mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 21:57:10 +02:00
Removed mutable lambdas from export controller.
This commit is contained in:
parent
bb78c43de5
commit
2d36079999
4 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue