mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Push non-default app scale to IV.
This commit is contained in:
@@ -106,7 +106,7 @@ public:
|
||||
resetLabel->setAttribute(Qt::WA_TransparentForMouseEvents);
|
||||
reset->setTextTransform(Ui::RoundButton::TextTransform::NoTransform);
|
||||
reset->setClickedCallback([this] {
|
||||
_delegate->ivSetZoom(kDefaultZoom);
|
||||
_delegate->ivSetZoom(0);
|
||||
});
|
||||
reset->show();
|
||||
const auto plus = Ui::CreateSimpleCircleButton(
|
||||
@@ -699,7 +699,7 @@ void Controller::createWebview(const Webview::StorageId &storageId) {
|
||||
_delegate->ivSetZoom(_delegate->ivZoom() - kZoomStep);
|
||||
return base::EventFilterResult::Cancel;
|
||||
} else if (event->key() == Qt::Key_0) {
|
||||
_delegate->ivSetZoom(kDefaultZoom);
|
||||
_delegate->ivSetZoom(0);
|
||||
return base::EventFilterResult::Cancel;
|
||||
}
|
||||
}
|
||||
@@ -1016,7 +1016,7 @@ void Controller::processKey(const QString &key, const QString &modifier) {
|
||||
} else if (key == u"q"_q && modifier == ctrl) {
|
||||
quit();
|
||||
} else if (key == u"0"_q && modifier == ctrl) {
|
||||
_delegate->ivSetZoom(kDefaultZoom);
|
||||
_delegate->ivSetZoom(0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -848,6 +848,10 @@ void Instance::show(
|
||||
Core::App().hideMediaView();
|
||||
}
|
||||
|
||||
if (Core::App().settings().normalizeIvZoom()) {
|
||||
Core::App().saveSettingsDelayed();
|
||||
}
|
||||
|
||||
const auto guard = gsl::finally([&] {
|
||||
requestFull(session, data->id());
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user