Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.9, 0.9.1, and 0.9.1.1

history: desensitize synchronize menu items during bundle preview

Fixes #635

Changeset 7a3371416b09

Parent df71d5d70f1e

by Steve Borho

Changes to one file · Browse files at 7a3371416b09 Showing diff from parent df71d5d70f1e Diff from another changeset...

 
182
183
184
185
186
187
188
189
 
 
 
 
 
 
 
 
 
 
190
191
192
 
1080
1081
1082
 
 
 
1083
1084
1085
 
1145
1146
1147
 
 
 
1148
1149
1150
 
182
183
184
 
 
 
 
 
185
186
187
188
189
190
191
192
193
194
195
196
197
 
1085
1086
1087
1088
1089
1090
1091
1092
1093
 
1153
1154
1155
1156
1157
1158
1159
1160
1161
@@ -182,11 +182,16 @@
  ] + bmenus),     (_('_Synchronize'), [ - dict(text=_('Incoming'), func=self.incoming_clicked), - dict(text=_('Pull'), func=self.pull_clicked), - dict(text=_('Outgoing'), func=self.outgoing_clicked), - dict(text=_('Push'), func=self.push_clicked), - dict(text=_('Email...'), func=self.email_clicked), + dict(text=_('Incoming'), name='incoming', + func=self.incoming_clicked), + dict(text=_('Pull'), name='pull', + func=self.pull_clicked), + dict(text=_('Outgoing'), name='outgoing', + func=self.outgoing_clicked), + dict(text=_('Push'), name='push', + func=self.push_clicked), + dict(text=_('Email...'), name='email', + func=self.email_clicked),   dict(text='----'),   dict(text=_('Add Bundle...'), name='add-bundle',   sensitive=not bool(self.bfile), @@ -1080,6 +1085,9 @@
  self.cmd_set_sensitive('add-bundle', True)   for w in self.incoming_disabled:   w.set_sensitive(True) + for cmd in ('incoming', 'outgoing', 'push', 'pull', 'email'): + self.cmd_set_sensitive(cmd, True) +     def reject_clicked(self, button):   self.remove_overlay(False) @@ -1145,6 +1153,9 @@
  self.cmd_set_sensitive('reject', True)   self.cmd_set_sensitive('add-bundle', False)   + for cmd in ('incoming', 'outgoing', 'push', 'pull', 'email'): + self.cmd_set_sensitive(cmd, False) +   self.incoming_disabled = []   for cmd in ('refresh', 'synchronize', 'mq'):   try: