mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Fix build with Xcode.
This commit is contained in:
@@ -2672,7 +2672,7 @@ void Widget::showForum(
|
|||||||
const Window::SectionShow ¶ms) {
|
const Window::SectionShow ¶ms) {
|
||||||
const auto nochat = !controller()->mainSectionShown();
|
const auto nochat = !controller()->mainSectionShown();
|
||||||
if (!params.childColumn
|
if (!params.childColumn
|
||||||
|| !Core::App().settings().dialogsWidthRatio(nochat)
|
|| (Core::App().settings().dialogsWidthRatio(nochat) == 0.)
|
||||||
|| (_layout != Layout::Main)
|
|| (_layout != Layout::Main)
|
||||||
|| OptionForumHideChatsList.value()) {
|
|| OptionForumHideChatsList.value()) {
|
||||||
changeOpenedForum(forum, params.animated);
|
changeOpenedForum(forum, params.animated);
|
||||||
|
@@ -2509,7 +2509,7 @@ void MainWidget::updateDialogsWidthAnimated() {
|
|||||||
}
|
}
|
||||||
auto dialogsWidth = _dialogsWidth;
|
auto dialogsWidth = _dialogsWidth;
|
||||||
updateWindowAdaptiveLayout();
|
updateWindowAdaptiveLayout();
|
||||||
if (!Core::App().settings().dialogsWidthRatio(nochat)
|
if (Core::App().settings().dialogsWidthRatio(nochat) == 0.
|
||||||
&& (_dialogsWidth != dialogsWidth
|
&& (_dialogsWidth != dialogsWidth
|
||||||
|| _a_dialogsWidth.animating())) {
|
|| _a_dialogsWidth.animating())) {
|
||||||
_dialogs->startWidthAnimation();
|
_dialogs->startWidthAnimation();
|
||||||
|
Reference in New Issue
Block a user