Skip to content

Commit 3aa848d

Browse files
authored
Merge pull request #152 from hsorby/main
Tweak output from plugin wizard to tidy generated output.
2 parents 08a957e + 5baf559 commit 3aa848d

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/mapclient/tools/pluginwizard/skeleton.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ def getConfig(self):
414414
row_index = 0
415415
while row_index < self._options.configCount():
416416
label = self._options.getConfig(row_index)[0]
417-
widgets_string += CONFIGURE_DIALOG_LINE.format(row=row_index, label=label + ': ')
417+
widgets_string += CONFIGURE_DIALOG_LINE.format(row=row_index, label=label + ': ')
418418
config = self._options.getConfig(row_index)
419419
set_config_string += ' self._ui.lineEdit{0}.setText(config[\'{1}\'])\n'.format(row_index, config[0])
420420
get_config_string += ' config[\'{1}\'] = self._ui.lineEdit{0}.text()\n'.format(row_index, config[0])
@@ -568,7 +568,7 @@ def getConfig(self, index):
568568
return self._configs[index]
569569

570570
def addConfig(self, label, value):
571-
if label == 'identifier':
571+
if label.lower() == 'identifier':
572572
self._identifierConfig = True
573573
self._configs.append([label, value])
574574

src/mapclient/tools/pluginwizard/skeletonstrings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ def validate(self):
245245
<property name="title">
246246
<string/>
247247
</property>
248-
<layout class="QFormLayout" name="formLayout">{1} </layout>
248+
<layout class="QFormLayout" name="formLayout">{1}</layout>
249249
</widget>
250250
</item>
251251
<item row="1" column="0">

src/mapclient/tools/pluginwizard/wizarddialog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def accept(self):
129129
row_index += 1
130130

131131
if self.page(3)._ui.identifierCheckBox.isChecked():
132-
self._options.addConfig('identifier', '')
132+
self._options.addConfig('Identifier', '')
133133

134134
configs_table = self.page(3)._ui.configTableWidget
135135
row_index = 0

0 commit comments

Comments
 (0)