Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9.2, 1.9.3, and 2.0

shellconf: use untranslated strings as dictionary keys

Changeset 69a1d7f5ebc8

Parent 0a413e126834

by Steve Borho

Changes to one file · Browse files at 69a1d7f5ebc8 Showing diff from parent 0a413e126834 Diff from another changeset...

 
205
206
207
208
209
 
 
 
210
211
 
212
213
 
 
214
215
216
 
219
220
221
222
223
 
224
225
226
 
205
206
207
 
 
208
209
210
211
 
212
213
 
214
215
216
217
218
 
221
222
223
 
 
224
225
226
227
@@ -205,12 +205,14 @@
  list.setSortingEnabled(True)   promoted = [pi.strip() for pi in promoteditems.split(',')]   for cmd, info in menuthg.thgcmenu.items(): - label = info['label']['str'] - self.menu_cmds[label] = cmd + label = info['label'] + item = QListWidgetItem(hglib.tounicode(label['str'])) + item._id = label['id']   if cmd in promoted: - self.topmenulist.addItem(hglib.tounicode(label)) + self.topmenulist.addItem(item)   else: - self.submenulist.addItem(hglib.tounicode(label)) + self.submenulist.addItem(item) + self.menu_cmds[item._id] = cmd     def store_shell_configs(self):   if not self.dirty: @@ -219,8 +221,7 @@
  promoted = []   list = self.topmenulist   for row in range(list.count()): - label = hglib.fromunicode(list.item(row).text()) - cmd = self.menu_cmds[label] + cmd = self.menu_cmds[list.item(row)._id]   promoted.append(cmd)     hkey = CreateKey(HKEY_CURRENT_USER, "Software\\" + THGKEY)