Fixes to split toolbar

This commit is contained in:
pelya
2014-06-02 01:58:58 +03:00
parent 9923ecfed0
commit 9bdda2756b
3 changed files with 11 additions and 2 deletions

View File

@@ -1222,6 +1222,7 @@ static inline bool IsVitalWindow(const Window *w)
{
switch (w->window_class) {
case WC_MAIN_TOOLBAR:
case WC_MAIN_TOOLBAR_RIGHT:
case WC_STATUS_BAR:
case WC_NEWS_WINDOW:
case WC_SEND_NETWORK_MSG:
@@ -3373,6 +3374,7 @@ restart_search:
void HideVitalWindows()
{
DeleteWindowById(WC_MAIN_TOOLBAR, 0);
DeleteWindowById(WC_MAIN_TOOLBAR_RIGHT, 0);
DeleteWindowById(WC_STATUS_BAR, 0);
}