mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-06 12:39:57 +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_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());
|
||||
|
||||
|
@ -63,6 +63,9 @@ namespace app {
|
||||
// Mini-stats
|
||||
int m_inits;
|
||||
int m_exits;
|
||||
|
||||
// True if this is a developer
|
||||
bool m_isDeveloper;
|
||||
};
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user