Add IsDeveloper to [Updater] section and &dev=1 to updater URL.

This commit is contained in:
David Capello 2011-11-13 12:37:32 -03:00
parent 1171140ad0
commit c53590a0d5
2 changed files with 7 additions and 0 deletions

View File

@ -88,6 +88,7 @@ CheckUpdateThreadLauncher::CheckUpdateThreadLauncher()
, m_guiMonitor(NULL)
, m_inits(get_config_int("Updater", "Inits", 0))
, m_exits(get_config_int("Updater", "Exits", 0))
, m_isDeveloper(get_config_bool("Updater", "IsDeveloper", false))
{
// Get how many days we have to wait for the next "check for update"
int waitDays = get_config_int("Updater", "WaitDays", 0);
@ -202,6 +203,9 @@ void CheckUpdateThreadLauncher::checkForUpdates()
extraParams << "inits=" << m_inits
<< "&exits=" << m_exits;
if (m_isDeveloper)
extraParams << "&dev=1";
// Send the HTTP request to check for updates.
m_bgJob->sendRequest(m_uuid, extraParams.str());

View File

@ -63,6 +63,9 @@ namespace app {
// Mini-stats
int m_inits;
int m_exits;
// True if this is a developer
bool m_isDeveloper;
};
}