void WindowData::toggleIndicator(bool fullscreen)
{
- LogDebug(__PRETTY_FUNCTION__);
+ LogDebug("fullscreen=" << (fullscreen?"true":"false"));
+
if (!fullscreen) {
elm_win_indicator_mode_set(m_win, ELM_WIN_INDICATOR_SHOW);
elm_layout_theme_set(m_platform_layout,
return;
}
- if (!m_fullscreen) //If ViewMode is not fullscreen, toggle the title bar.
+ if (!m_fullscreen) {
+ //If ViewMode is not fullscreen, toggle the title bar and indicator
fullscreen ? hideTitle() : showTitle(m_title.c_str());
-
- if (m_indicator) //If indicator is shown by default, toggle it.
- toggleIndicator(!fullscreen);
-
+ toggleIndicator(fullscreen);
+ }
alreadyFullscreen = !alreadyFullscreen;
}