Commit b9ea87ec authored by digitalLumberjack's avatar digitalLumberjack

added xkodi option and update check option

parent e4c9e6cf
......@@ -311,7 +311,9 @@ int main(int argc, char* argv[])
}
// UPDATE CHECK THREAD
NetworkThread * nthread = new NetworkThread(&window);
if(Settings::getInstance()->getBool("CheckUpdates")){
NetworkThread * nthread = new NetworkThread(&window);
}
//run the command line scraper then quit
if(scrape_cmdline)
......
......@@ -71,6 +71,8 @@ void Settings::setDefaults()
mBoolMap["EnableWifi"] = false;
mBoolMap["EnableKodi"] = true;
mBoolMap["KodiStartup"] = false;
mBoolMap["XKodi"] = true;
mBoolMap["CheckUpdates"] = true;
mIntMap["ScreenSaverTime"] = 5*60*1000; // 5 minutes
mIntMap["ScraperResizeWidth"] = 400;
......
......@@ -131,7 +131,7 @@ void Window::input(InputConfig* config, Input input)
}
else
{
if(config->isMappedTo("x", input) && input.value && !launchKodi && Settings::getInstance()->getBool("EnableKodi")){
if(config->isMappedTo("x", input) && input.value && !launchKodi && Settings::getInstance()->getBool("EnableKodi") && Settings::getInstance()->getBool("XKodi")){
launchKodi = true;
Window * window = this;
this->pushGui(new GuiMsgBox(this, "DO YOU WANT TO START KODI MEDIA CENTER ?", "YES",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment