Show sidebar after initial sync

fixes #412
This commit is contained in:
Konstantinos Sideris 2018-09-08 15:50:35 +03:00
parent 5267e0262b
commit 667ee75d66
3 changed files with 4 additions and 4 deletions

View file

@ -1320,7 +1320,7 @@ ChatPage::showSideBars()
top_bar_->disableBackButton();
}
int
uint64_t
ChatPage::timelineWidth()
{
int sidebarWidth = sideBar_->size().width();

View file

@ -67,7 +67,7 @@ public:
void deleteConfigs();
//! Calculate the width of the message timeline.
int timelineWidth();
uint64_t timelineWidth();
bool isSideBarExpanded();
//! Hide the room & group list (if it was visible).
void hideSideBars();

View file

@ -181,8 +181,8 @@ MainWindow::resizeEvent(QResizeEvent *event)
void
MainWindow::adjustSideBars()
{
const int timelineWidth = chat_page_->timelineWidth();
const int minAvailableWidth =
const uint64_t timelineWidth = chat_page_->timelineWidth();
const uint64_t minAvailableWidth =
conf::sideBarCollapsePoint + ui::sidebar::CommunitiesSidebarSize;
if (timelineWidth < minAvailableWidth && !chat_page_->isSideBarExpanded()) {