mirror of
				https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
				synced 2023-10-19 15:58:31 +00:00 
			
		
		
		
	updating skinrepo only when opening skindesigner setup the first time
This commit is contained in:
		@@ -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"
 | 
			
		||||
 
 | 
			
		||||
@@ -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..."
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -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..."
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										9
									
								
								setup.c
									
									
									
									
									
								
							
							
						
						
									
										9
									
								
								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();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										1
									
								
								setup.h
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								setup.h
									
									
									
									
									
								
							@@ -38,6 +38,7 @@ public:
 | 
			
		||||
// --- cSkinDesignerSetup -----------------------------------------------------------
 | 
			
		||||
class cSkinDesignerSetup : public cMenuSetupPage, cInstallManager {
 | 
			
		||||
private:
 | 
			
		||||
    static bool skinrepoUpdated;
 | 
			
		||||
    skindesignerapi::cPluginStructure *skinPreviewStruct;
 | 
			
		||||
    int numLogosPerSizeInitial;
 | 
			
		||||
    int cacheImagesInitial;
 | 
			
		||||
 
 | 
			
		||||
@@ -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!");
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user