mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 22:25:12 +00:00
Remove App::app(), App::uploader(), App::api().
Also use Auth() instead of AuthSession::Current*().
This commit is contained in:
@@ -886,7 +886,7 @@ void RemoteImage::doCheckload() const {
|
||||
void RemoteImage::destroyLoaderDelayed(FileLoader *newValue) const {
|
||||
_loader->stop();
|
||||
auto loader = std::unique_ptr<FileLoader>(std::exchange(_loader, newValue));
|
||||
AuthSession::Current().downloader().delayedDestroyLoader(std::move(loader));
|
||||
Auth().downloader().delayedDestroyLoader(std::move(loader));
|
||||
}
|
||||
|
||||
void RemoteImage::loadLocal() {
|
||||
@@ -987,7 +987,7 @@ void RemoteImage::cancel() {
|
||||
auto loader = std::exchange(_loader, CancelledFileLoader);
|
||||
loader->cancel();
|
||||
loader->stop();
|
||||
AuthSession::Current().downloader().delayedDestroyLoader(std::unique_ptr<FileLoader>(loader));
|
||||
Auth().downloader().delayedDestroyLoader(std::unique_ptr<FileLoader>(loader));
|
||||
}
|
||||
|
||||
float64 RemoteImage::progress() const {
|
||||
|
Reference in New Issue
Block a user