From f3a27ba22d2d236fd3bfe9bf0c91ceb88c3c6a2b Mon Sep 17 00:00:00 2001 From: louis Date: Sat, 18 Jun 2016 13:45:00 +0200 Subject: [PATCH] updating skinrepo only when opening skindesigner setup the first time --- po/de_DE.po | 7 +++++-- po/fi_FI.po | 5 ++++- po/it_IT.po | 5 ++++- setup.c | 9 +++++++++ setup.h | 1 + skindesigner.c | 1 - 6 files changed, 23 insertions(+), 5 deletions(-) diff --git a/po/de_DE.po b/po/de_DE.po index ca5193b..3341056 100644 --- a/po/de_DE.po +++ b/po/de_DE.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: vdr-skindesigner 0.0.1\n" "Report-Msgid-Bugs-To: \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 \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" diff --git a/po/fi_FI.po b/po/fi_FI.po index 9d62bd7..4b192b1 100644 --- a/po/fi_FI.po +++ b/po/fi_FI.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: vdr-skindesigner 0.2.0\n" "Report-Msgid-Bugs-To: \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..." diff --git a/po/it_IT.po b/po/it_IT.po index 1b87b36..9dbcf4b 100644 --- a/po/it_IT.po +++ b/po/it_IT.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: vdr-skindesigner 0.0.1\n" "Report-Msgid-Bugs-To: \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..." diff --git a/setup.c b/setup.c index 5064fa8..e081da2 100644 --- a/setup.c +++ b/setup.c @@ -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(); } diff --git a/setup.h b/setup.h index 2147ad6..1fbe04f 100644 --- a/setup.h +++ b/setup.h @@ -38,6 +38,7 @@ public: // --- cSkinDesignerSetup ----------------------------------------------------------- class cSkinDesignerSetup : public cMenuSetupPage, cInstallManager { private: + static bool skinrepoUpdated; skindesignerapi::cPluginStructure *skinPreviewStruct; int numLogosPerSizeInitial; int cacheImagesInitial; diff --git a/skindesigner.c b/skindesigner.c index c23257c..2db00ee 100644 --- a/skindesigner.c +++ b/skindesigner.c @@ -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!");