Remembering the last selected choice
Bug #352009 reported by
Nadia Alramli
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Phatch |
Fix Released
|
Low
|
Stani |
Bug Description
Hi,
It would be nice if the plugin window remembers the last selected category. The same applies to the image inspector window. That would save time if you are frequently adding new actions to the list.
Thanks,
Nadia
Changed in phatch: | |
assignee: | nobody → stani |
importance: | Undecided → Low |
status: | New → Confirmed |
Changed in phatch: | |
milestone: | none → 0.2.1 |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
The fix has been committed upstream and will be part of next release.
$ bzr diff pyWx/gui. py'
self. _open(filename)
=== modified file 'phatch/
--- phatch/pyWx/gui.py 2009-02-17 01:26:42 +0000
+++ phatch/pyWx/gui.py 2009-03-30 23:52:32 +0000
@@ -405,15 +405,16 @@
def on_menu_ edit_add( self, event): ActionDialog( self,api. ACTIONS, -1, self._max_ height) ), _("actions" ), ) ActionDialog( self,api. ACTIONS, -1, self._max_ height) ), _("actions" ), ) .ShowModal( ) == wx.ID_OK:
self. set_dirty( True) lection( ) .GetStringSelec tion()
self. tree.append_ form_by_ label_to_ selected( label)
self. enable_ actions( True) .Hide()
- dlg = dialogs.
- size=(self._width, min(400,
- title="%(name)s "%ct.INFO+
- if dlg.ShowModal() == wx.ID_OK:
+ if not hasattr(self, 'dlgActions'):
+ self.dlgActions = dialogs.
+ size=(self._width, min(400,
+ title="%(name)s "%ct.INFO+
+ if self.dlgActions
- label = dlg.GetStringSe
+ label = self.dlgActions
- dlg.Destroy()
+ self.dlgActions
$ bzr commit -m "remember last action dialog" sync/python/ phatch/ trunk/
Committing to: /home/stani/
modified phatch/pyWx/gui.py
Committed revision 555.