Ensure system is configured before adding project
offlate/ui/manager.py
158 | 158 | if not w.wantNew(): | |
159 | 159 | return | |
160 | 160 | res = self.manager.isConfigured(w.getProjectSystem()) | |
161 | - | if not res: | |
162 | - | res = self.configureSystem(w.getProjectSystem()) | |
163 | - | if not res: | |
164 | - | return | |
161 | + | while not res: | |
162 | + | if not self.configureSystem(w.getProjectSystem()): | |
163 | + | return | |
164 | + | res = self.manager.isConfigured(w.getProjectSystem()) | |
165 | 165 | worker = NewRunnable(self, w.getProjectName(), w.getProjectLang(), | |
166 | 166 | w.getProjectSystem(), w.getProjectInfo()) | |
167 | 167 | worker.signals.finished.connect(self.openProject) | |
… | |||
177 | 177 | if not w.wantNew(): | |
178 | 178 | return | |
179 | 179 | res = self.manager.isConfigured(w.getProjectSystem()) | |
180 | - | if not res: | |
181 | - | res = self.configureSystem(w.getProjectSystem()) | |
182 | - | if not res: | |
183 | - | return | |
180 | + | while not res: | |
181 | + | if not self.configureSystem(w.getProjectSystem()): | |
182 | + | return | |
183 | + | res = self.manager.isConfigured(w.getProjectSystem()) | |
184 | 184 | worker = NewRunnable(self, w.getProjectName(), w.getProjectLang(), | |
185 | 185 | w.getProjectSystem(), w.getProjectInfo()) | |
186 | 186 | worker.signals.finished.connect(self.openProject) |