summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-10-28 21:18:01 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-10-28 21:18:01 +0300
commit9f211a10313ea6f508c5521bd2a0880e062b5f08 (patch)
tree6fa62f97150a55c3569570a8111d9489990ab1fb /plugins/TabSRMM
parentc9ea0a63cc82a0dbe1d2b5a7fcb9a95c8b9f1aae (diff)
fixes #2101 (tabSRMM: tabs disappear when switching layout to vertical)
Diffstat (limited to 'plugins/TabSRMM')
-rw-r--r--plugins/TabSRMM/src/sidebar.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/TabSRMM/src/sidebar.cpp b/plugins/TabSRMM/src/sidebar.cpp
index 6b77165c6f..2943b6c801 100644
--- a/plugins/TabSRMM/src/sidebar.cpp
+++ b/plugins/TabSRMM/src/sidebar.cpp
@@ -394,8 +394,7 @@ void CSideBar::Init()
m_hwndScrollWnd = ::CreateWindowEx(0, L"TS_SideBarClass", L"", WS_CLIPCHILDREN | WS_CLIPSIBLINGS | WS_VISIBLE | WS_CHILD,
0, 0, m_width, 40, m_pContainer->m_hwnd, reinterpret_cast<HMENU>(5000), g_plugin.getInst(), this);
- m_isActive = true;
- m_isVisible = m_isActive ? m_isVisible : true;
+ m_isActive = m_isVisible = true;
createScroller();
m_elementHeight = m_currentLayout->height;
m_elementWidth = m_currentLayout->width;