mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Use base::weak_qptr / base::make_weak.
This commit is contained in:
@@ -173,7 +173,7 @@ Loader::Loader(
|
||||
|
||||
void Loader::unpack(const QString &path) {
|
||||
const auto folder = internal::SetDataPath(id());
|
||||
const auto weak = Ui::MakeWeak(this);
|
||||
const auto weak = base::make_weak(this);
|
||||
crl::async([=] {
|
||||
if (UnpackSet(path, folder)) {
|
||||
QFile(path).remove();
|
||||
|
Reference in New Issue
Block a user