Add support for toolchains stored in the windows registry
[bertos.git] / wizard / BToolchainPage.py
index 2587cf2019bc9fd768baf199c7b4aa870db12f90..c012a200307032f3fb25aef78da8100ecf5e3d91 100644 (file)
@@ -136,6 +136,11 @@ class BToolchainPage(BWizardPage):
         Fills the toolchain list with the toolchains stored in the QSettings.
         """
         toolchains = self.toolchains()
+        if os.name == "nt":
+            import winreg_importer
+            stored_toolchains = winreg_importer.getBertosToolchains()
+            for toolchain in stored_toolchains:
+                toolchains[toolchain] = True
         sel_toolchain = self.projectInfo("TOOLCHAIN")
         for key, value in toolchains.items():
             item = QListWidgetItem(key)