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 ""
 | 
					msgstr ""
 | 
				
			||||||
"Project-Id-Version: vdr-skindesigner 0.0.1\n"
 | 
					"Project-Id-Version: vdr-skindesigner 0.0.1\n"
 | 
				
			||||||
"Report-Msgid-Bugs-To: <see README>\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"
 | 
					"PO-Revision-Date: 2014-09-27 11:02+0200\n"
 | 
				
			||||||
"Last-Translator: Louis Braun <louis.braun@gmx.de>\n"
 | 
					"Last-Translator: Louis Braun <louis.braun@gmx.de>\n"
 | 
				
			||||||
"Language-Team: \n"
 | 
					"Language-Team: \n"
 | 
				
			||||||
@@ -45,8 +45,11 @@ msgstr "eines nach dem anderen"
 | 
				
			|||||||
msgid "at one go"
 | 
					msgid "at one go"
 | 
				
			||||||
msgstr "alle auf einmal"
 | 
					msgstr "alle auf einmal"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					msgid "Updating Skinrepositories"
 | 
				
			||||||
 | 
					msgstr "Aktualisiere Skinrepositories"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
msgid "Downloading Skin Screenshots..."
 | 
					msgid "Downloading Skin Screenshots..."
 | 
				
			||||||
msgstr ""
 | 
					msgstr "Lade Skin Screenshots..."
 | 
				
			||||||
 | 
					
 | 
				
			||||||
msgid "Install Skin"
 | 
					msgid "Install Skin"
 | 
				
			||||||
msgstr "Installiere Skin"
 | 
					msgstr "Installiere Skin"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -6,7 +6,7 @@ msgid ""
 | 
				
			|||||||
msgstr ""
 | 
					msgstr ""
 | 
				
			||||||
"Project-Id-Version: vdr-skindesigner 0.2.0\n"
 | 
					"Project-Id-Version: vdr-skindesigner 0.2.0\n"
 | 
				
			||||||
"Report-Msgid-Bugs-To: <see README>\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"
 | 
					"PO-Revision-Date: 2015-01-25 01:25+0200\n"
 | 
				
			||||||
"Last-Translator: Rolf Ahrenberg\n"
 | 
					"Last-Translator: Rolf Ahrenberg\n"
 | 
				
			||||||
"Language-Team: Finnish\n"
 | 
					"Language-Team: Finnish\n"
 | 
				
			||||||
@@ -45,6 +45,9 @@ msgstr "yksi kerrallaan"
 | 
				
			|||||||
msgid "at one go"
 | 
					msgid "at one go"
 | 
				
			||||||
msgstr "kaikki kerralla"
 | 
					msgstr "kaikki kerralla"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					msgid "Updating Skinrepositories"
 | 
				
			||||||
 | 
					msgstr ""
 | 
				
			||||||
 | 
					
 | 
				
			||||||
msgid "Downloading Skin Screenshots..."
 | 
					msgid "Downloading Skin Screenshots..."
 | 
				
			||||||
msgstr "Ladataan kuvakaappauksia ulkoasusta..."
 | 
					msgstr "Ladataan kuvakaappauksia ulkoasusta..."
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -6,7 +6,7 @@ msgid ""
 | 
				
			|||||||
msgstr ""
 | 
					msgstr ""
 | 
				
			||||||
"Project-Id-Version: vdr-skindesigner 0.0.1\n"
 | 
					"Project-Id-Version: vdr-skindesigner 0.0.1\n"
 | 
				
			||||||
"Report-Msgid-Bugs-To: <see README>\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"
 | 
					"PO-Revision-Date: 2015-08-09 11:02+0200\n"
 | 
				
			||||||
"Last-Translator: fiveten_59\n"
 | 
					"Last-Translator: fiveten_59\n"
 | 
				
			||||||
"Language-Team: Italian\n"
 | 
					"Language-Team: Italian\n"
 | 
				
			||||||
@@ -45,6 +45,9 @@ msgstr "in serie"
 | 
				
			|||||||
msgid "at one go"
 | 
					msgid "at one go"
 | 
				
			||||||
msgstr "in una volta sola"
 | 
					msgstr "in una volta sola"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					msgid "Updating Skinrepositories"
 | 
				
			||||||
 | 
					msgstr ""
 | 
				
			||||||
 | 
					
 | 
				
			||||||
msgid "Downloading Skin Screenshots..."
 | 
					msgid "Downloading Skin Screenshots..."
 | 
				
			||||||
msgstr "Downloading Skin Screenshots..."
 | 
					msgstr "Downloading Skin Screenshots..."
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										9
									
								
								setup.c
									
									
									
									
									
								
							
							
						
						
									
										9
									
								
								setup.c
									
									
									
									
									
								
							@@ -119,6 +119,8 @@ eOSState cInstallManager::ProcessInstallationStatus(void) {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// --- cSkinDesignerSetup -----------------------------------------------------------
 | 
					// --- cSkinDesignerSetup -----------------------------------------------------------
 | 
				
			||||||
 | 
					bool cSkinDesignerSetup::skinrepoUpdated = false;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
cSkinDesignerSetup::cSkinDesignerSetup(skindesignerapi::cPluginStructure *skinPreviewStruct) {
 | 
					cSkinDesignerSetup::cSkinDesignerSetup(skindesignerapi::cPluginStructure *skinPreviewStruct) {
 | 
				
			||||||
    this->skinPreviewStruct = skinPreviewStruct;
 | 
					    this->skinPreviewStruct = skinPreviewStruct;
 | 
				
			||||||
    numLogosPerSizeInitial = config.numLogosPerSizeInitial;
 | 
					    numLogosPerSizeInitial = config.numLogosPerSizeInitial;
 | 
				
			||||||
@@ -132,6 +134,13 @@ cSkinDesignerSetup::cSkinDesignerSetup(skindesignerapi::cPluginStructure *skinPr
 | 
				
			|||||||
    numCustomTokens = config.numCustomTokens;
 | 
					    numCustomTokens = config.numCustomTokens;
 | 
				
			||||||
    menuDisplayStyle[0] = tr("after one another");
 | 
					    menuDisplayStyle[0] = tr("after one another");
 | 
				
			||||||
    menuDisplayStyle[1] = tr("at one go");
 | 
					    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();
 | 
					    Setup();
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										1
									
								
								setup.h
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								setup.h
									
									
									
									
									
								
							@@ -38,6 +38,7 @@ public:
 | 
				
			|||||||
// --- cSkinDesignerSetup -----------------------------------------------------------
 | 
					// --- cSkinDesignerSetup -----------------------------------------------------------
 | 
				
			||||||
class cSkinDesignerSetup : public cMenuSetupPage, cInstallManager {
 | 
					class cSkinDesignerSetup : public cMenuSetupPage, cInstallManager {
 | 
				
			||||||
private:
 | 
					private:
 | 
				
			||||||
 | 
					    static bool skinrepoUpdated;
 | 
				
			||||||
    skindesignerapi::cPluginStructure *skinPreviewStruct;
 | 
					    skindesignerapi::cPluginStructure *skinPreviewStruct;
 | 
				
			||||||
    int numLogosPerSizeInitial;
 | 
					    int numLogosPerSizeInitial;
 | 
				
			||||||
    int cacheImagesInitial;
 | 
					    int cacheImagesInitial;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -153,7 +153,6 @@ bool cPluginSkinDesigner::Start(void) {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
    config.TranslateSetup();
 | 
					    config.TranslateSetup();
 | 
				
			||||||
    config.SetSkinSetupParameters();
 | 
					    config.SetSkinSetupParameters();
 | 
				
			||||||
    config.ReadSkinRepos();
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (!skinAvailable) {
 | 
					    if (!skinAvailable) {
 | 
				
			||||||
        esyslog("skindesigner: no skins found! Using default Skin LCARS!");
 | 
					        esyslog("skindesigner: no skins found! Using default Skin LCARS!");
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user