mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Use gsl::finally() instead of base::scope_guard().
This commit is contained in:
@@ -83,7 +83,7 @@ void ScaleWidget::onAutoChanged() {
|
||||
void ScaleWidget::setScale(DBIScale newScale) {
|
||||
if (_inSetScale) return;
|
||||
_inSetScale = true;
|
||||
auto guard = base::scope_guard([this] { _inSetScale = false; });
|
||||
auto guard = gsl::finally([this] { _inSetScale = false; });
|
||||
|
||||
if (newScale == cScreenScale()) newScale = dbisAuto;
|
||||
if (newScale == dbisAuto && !_auto->checked()) {
|
||||
|
Reference in New Issue
Block a user