Fix build with GCC.

This commit is contained in:
John Preston
2026-03-01 18:00:46 +04:00
parent e37894d011
commit c30608d7eb
3 changed files with 3 additions and 3 deletions
@@ -356,7 +356,7 @@ void BuildWindowCloseBehaviorSection(SectionBuilder &builder) {
? (Core::App().settings().workModeValue(
) | rpl::map([](Core::Settings::WorkMode mode) {
return (mode == Core::Settings::WorkMode::WindowOnly);
}) | rpl::distinct_until_changed() | rpl::type_erased())
}) | rpl::distinct_until_changed() | rpl::type_erased)
: rpl::producer<bool>(nullptr);
builder.scope([&] {
@@ -204,7 +204,7 @@ void MiddleClickAutoscroll::onTimer() {
return;
}
const auto now = crl::now();
const auto elapsed = std::max(now - _time, 1LL);
const auto elapsed = std::max(now - _time, crl::time(1));
_time = now;
const auto delta = QCursor::pos().y() - _startPosition.y();
updateCursor(delta);