From d30962bf00b491f3cc23c505b6597c7618ddcd8c Mon Sep 17 00:00:00 2001 From: Forkk Date: Sat, 4 Jan 2014 19:46:47 -0600 Subject: Implement changing update channels Allow the user to select which update channel they would like to download updates from. --- logic/updater/UpdateChecker.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'logic/updater/UpdateChecker.cpp') diff --git a/logic/updater/UpdateChecker.cpp b/logic/updater/UpdateChecker.cpp index d0795c0d..acf74f40 100644 --- a/logic/updater/UpdateChecker.cpp +++ b/logic/updater/UpdateChecker.cpp @@ -24,6 +24,8 @@ #include #include +#include + #define API_VERSION 0 #define CHANLIST_FORMAT 0 @@ -70,9 +72,8 @@ void UpdateChecker::checkForUpdate(bool notifyNoUpdate) m_updateChecking = true; - // Get the URL for the channel we're using. - // TODO: Allow user to select channels. For now, we'll just use the current channel. - QString updateChannel = m_currentChannel; + // Get the channel we're checking. + QString updateChannel = MMC->settings()->get("UpdateChannel").toString(); // Find the desired channel within the channel list and get its repo URL. If if cannot be // found, error. -- cgit v1.2.3