updating skinrepo only when opening skindesigner setup the first time

This commit is contained in:
louis 2016-06-18 13:45:00 +02:00
parent 0460690ec8
commit f3a27ba22d
6 changed files with 23 additions and 5 deletions

View File

@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: vdr-skindesigner 0.0.1\n"
"Report-Msgid-Bugs-To: <see README>\n"
"POT-Creation-Date: 2016-01-20 18:31+0100\n"
"POT-Creation-Date: 2016-06-18 13:23+0200\n"
"PO-Revision-Date: 2014-09-27 11:02+0200\n"
"Last-Translator: Louis Braun <louis.braun@gmx.de>\n"
"Language-Team: \n"
@ -45,8 +45,11 @@ msgstr "eines nach dem anderen"
msgid "at one go"
msgstr "alle auf einmal"
msgid "Updating Skinrepositories"
msgstr "Aktualisiere Skinrepositories"
msgid "Downloading Skin Screenshots..."
msgstr ""
msgstr "Lade Skin Screenshots..."
msgid "Install Skin"
msgstr "Installiere Skin"

View File

@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: vdr-skindesigner 0.2.0\n"
"Report-Msgid-Bugs-To: <see README>\n"
"POT-Creation-Date: 2016-01-20 18:31+0100\n"
"POT-Creation-Date: 2016-06-18 13:23+0200\n"
"PO-Revision-Date: 2015-01-25 01:25+0200\n"
"Last-Translator: Rolf Ahrenberg\n"
"Language-Team: Finnish\n"
@ -45,6 +45,9 @@ msgstr "yksi kerrallaan"
msgid "at one go"
msgstr "kaikki kerralla"
msgid "Updating Skinrepositories"
msgstr ""
msgid "Downloading Skin Screenshots..."
msgstr "Ladataan kuvakaappauksia ulkoasusta..."

View File

@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: vdr-skindesigner 0.0.1\n"
"Report-Msgid-Bugs-To: <see README>\n"
"POT-Creation-Date: 2015-08-14 17:02+0200\n"
"POT-Creation-Date: 2016-06-18 13:23+0200\n"
"PO-Revision-Date: 2015-08-09 11:02+0200\n"
"Last-Translator: fiveten_59\n"
"Language-Team: Italian\n"
@ -45,6 +45,9 @@ msgstr "in serie"
msgid "at one go"
msgstr "in una volta sola"
msgid "Updating Skinrepositories"
msgstr ""
msgid "Downloading Skin Screenshots..."
msgstr "Downloading Skin Screenshots..."

View File

@ -119,6 +119,8 @@ eOSState cInstallManager::ProcessInstallationStatus(void) {
}
// --- cSkinDesignerSetup -----------------------------------------------------------
bool cSkinDesignerSetup::skinrepoUpdated = false;
cSkinDesignerSetup::cSkinDesignerSetup(skindesignerapi::cPluginStructure *skinPreviewStruct) {
this->skinPreviewStruct = skinPreviewStruct;
numLogosPerSizeInitial = config.numLogosPerSizeInitial;
@ -132,6 +134,13 @@ cSkinDesignerSetup::cSkinDesignerSetup(skindesignerapi::cPluginStructure *skinPr
numCustomTokens = config.numCustomTokens;
menuDisplayStyle[0] = tr("after one another");
menuDisplayStyle[1] = tr("at one go");
#ifndef DO_NOT_USE_SKININSTALLER
if (!skinrepoUpdated) {
Skins.Message(mtStatus, *cString::sprintf("%s...", tr("Updating Skinrepositories")));
skinrepoUpdated = true;
config.ReadSkinRepos();
}
#endif
Setup();
}

View File

@ -38,6 +38,7 @@ public:
// --- cSkinDesignerSetup -----------------------------------------------------------
class cSkinDesignerSetup : public cMenuSetupPage, cInstallManager {
private:
static bool skinrepoUpdated;
skindesignerapi::cPluginStructure *skinPreviewStruct;
int numLogosPerSizeInitial;
int cacheImagesInitial;

View File

@ -153,7 +153,6 @@ bool cPluginSkinDesigner::Start(void) {
}
config.TranslateSetup();
config.SetSkinSetupParameters();
config.ReadSkinRepos();
if (!skinAvailable) {
esyslog("skindesigner: no skins found! Using default Skin LCARS!");