mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-11 09:40:42 +00:00
Add IsDeveloper to [Updater] section and &dev=1 to updater URL.
This commit is contained in:
parent
1171140ad0
commit
c53590a0d5
@ -88,6 +88,7 @@ CheckUpdateThreadLauncher::CheckUpdateThreadLauncher()
|
|||||||
, m_guiMonitor(NULL)
|
, m_guiMonitor(NULL)
|
||||||
, m_inits(get_config_int("Updater", "Inits", 0))
|
, m_inits(get_config_int("Updater", "Inits", 0))
|
||||||
, m_exits(get_config_int("Updater", "Exits", 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"
|
// Get how many days we have to wait for the next "check for update"
|
||||||
int waitDays = get_config_int("Updater", "WaitDays", 0);
|
int waitDays = get_config_int("Updater", "WaitDays", 0);
|
||||||
@ -202,6 +203,9 @@ void CheckUpdateThreadLauncher::checkForUpdates()
|
|||||||
extraParams << "inits=" << m_inits
|
extraParams << "inits=" << m_inits
|
||||||
<< "&exits=" << m_exits;
|
<< "&exits=" << m_exits;
|
||||||
|
|
||||||
|
if (m_isDeveloper)
|
||||||
|
extraParams << "&dev=1";
|
||||||
|
|
||||||
// Send the HTTP request to check for updates.
|
// Send the HTTP request to check for updates.
|
||||||
m_bgJob->sendRequest(m_uuid, extraParams.str());
|
m_bgJob->sendRequest(m_uuid, extraParams.str());
|
||||||
|
|
||||||
|
@ -63,6 +63,9 @@ namespace app {
|
|||||||
// Mini-stats
|
// Mini-stats
|
||||||
int m_inits;
|
int m_inits;
|
||||||
int m_exits;
|
int m_exits;
|
||||||
|
|
||||||
|
// True if this is a developer
|
||||||
|
bool m_isDeveloper;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user