else
Close();
}
+
+ if (m_autoClosing)
+ { // check if our timer is running
+ if (!m_showStartTime)
+ {
+ if (HasProcessed()) // start timer
+ m_showStartTime = CTimeUtils::GetFrameTime();
+ }
+ else
+ {
+ if (m_showStartTime + m_showDuration < CTimeUtils::GetFrameTime() && !m_closing)
+ {
+ m_bAutoClosed = true;
+ Close();
+ }
+ }
+ }
}
void CGUIDialog::DoModal_Internal(int iWindowID /*= WINDOW_INVALID */, const CStdString ¶m /* = "" */)
void CGUIDialog::FrameMove()
{
- if (m_autoClosing)
- { // check if our timer is running
- if (!m_showStartTime)
- {
- if (HasProcessed()) // start timer
- m_showStartTime = CTimeUtils::GetFrameTime();
- }
- else
- {
- if (m_showStartTime + m_showDuration < CTimeUtils::GetFrameTime() && !m_closing)
- {
- m_bAutoClosed = true;
- Close();
- }
- }
- }
CGUIWindow::FrameMove();
}