mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Fix build with GCC.
This commit is contained in:
@@ -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);
|
||||
|
||||
+1
-1
Submodule Telegram/lib_webview updated: 44ddfe837a...d159fcea73
Reference in New Issue
Block a user