[PC-BSD Commits] r20223 - in users/ken/EasyPBI2: . FreeNAS

svn at pcbsd.org svn at pcbsd.org
Wed Nov 14 10:32:45 PST 2012


Author: kenmoore
Date: 2012-11-14 18:32:45 +0000 (Wed, 14 Nov 2012)
New Revision: 20223

Added:
   users/ken/EasyPBI2/FreeNAS/
   users/ken/EasyPBI2/FreeNAS/control
   users/ken/EasyPBI2/FreeNAS/manage.py
   users/ken/EasyPBI2/FreeNAS/settings.py
   users/ken/EasyPBI2/FreeNAS/tweak-rcconf
Modified:
   users/ken/EasyPBI2/config.cpp
   users/ken/EasyPBI2/mainGUI.cpp
Log:
Add in the first of the FreeNAS plugin templates, and fix a few bugs with EasyPBI. It should be up to the same amount of functionality as the old version now, with the additional pbi_create functionality. Just need to get the preferences dialog finished now.



Modified: users/ken/EasyPBI2/config.cpp
===================================================================
--- users/ken/EasyPBI2/config.cpp	2012-11-14 17:26:30 UTC (rev 20222)
+++ users/ken/EasyPBI2/config.cpp	2012-11-14 18:32:45 UTC (rev 20223)
@@ -15,7 +15,7 @@
 	QString tmp = QDir::homePath()+"/EasyPBI/";
     defaultSettings << "2.0" << tmp << tmp+"PBI/" << tmp+"Modules/" << tmp+".cache/" << tmp+"defaulticon.png" << tmp+".preferences" << QDir::homePath();
 	//TFstruct=[ is64-bitArch, portsAvailable, useDigitalSig, useTMPFS, usePkgCache, pbi_makeport_available, pbi_create_available, su_available ]
-    TFstruct << FALSE << FALSE << FALSE << FALSE << FALSE << FALSE << FALSE << FALSE;
+    TFstruct << FALSE << FALSE << FALSE << TRUE << TRUE << FALSE << FALSE << FALSE;
   }
 
 Config::~Config(){

Modified: users/ken/EasyPBI2/mainGUI.cpp
===================================================================
--- users/ken/EasyPBI2/mainGUI.cpp	2012-11-14 17:26:30 UTC (rev 20222)
+++ users/ken/EasyPBI2/mainGUI.cpp	2012-11-14 18:32:45 UTC (rev 20223)
@@ -413,7 +413,7 @@
       if(currentModule->isPortPBI){
         radio_module_port->toggle();
 	//Use the port info if possible
-	if( !settings->check("isportsAvailable") ){
+	if( settings->check("isportsAvailable") ){
 	  currentModule->readPortInformation(settings->value("portsdir")+"/"+modBase);
 	  //Now save the detected information into the module
 	  currentModule->writeValue("progname", currentModule->readValue("portname"));



More information about the Commits mailing list