Fix typo in support window code (#2395)
* Fix typo in support window * Fix the typo for real
This commit is contained in:
parent
ceaa05c317
commit
acbb8f85a8
|
@ -120,7 +120,7 @@ void CProjectSupport::IncrementRunCount()
|
|||
SaveSupportInfo();
|
||||
}
|
||||
|
||||
bool CProjectSupport::ShowSuppotWindow()
|
||||
bool CProjectSupport::ShowSupportWindow()
|
||||
{
|
||||
time_t now = time(nullptr);
|
||||
if (m_SupportInfo.LastShown <= now && ((now - m_SupportInfo.LastShown) / 60) < 60)
|
||||
|
|
|
@ -22,7 +22,7 @@ public:
|
|||
bool RequestCode(const char * Email);
|
||||
bool ValidateCode(const char * Code);
|
||||
void IncrementRunCount();
|
||||
bool ShowSuppotWindow();
|
||||
bool ShowSupportWindow();
|
||||
|
||||
inline uint32_t RunCount() const
|
||||
{
|
||||
|
|
|
@ -34,7 +34,7 @@ void CSupportWindow::Show(HWND hParent, bool Delay)
|
|||
}
|
||||
|
||||
m_Support.IncrementRunCount();
|
||||
if (m_Support.RunCount() < 7 || !m_Support.ShowSuppotWindow())
|
||||
if (m_Support.RunCount() < 7 || !m_Support.ShowSupportWindow())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue