Remembering the last selected choice

Bug #352009 reported by Nadia Alramli
2
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

Stani (stani)
Changed in phatch:
assignee: nobody → stani
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Stani (stani) wrote :

The fix has been committed upstream and will be part of next release.

$ bzr diff
=== modified file 'phatch/pyWx/gui.py'
--- 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 @@
         self._open(filename)

     def on_menu_edit_add(self, event):
- dlg = dialogs.ActionDialog(self,api.ACTIONS,-1,
- size=(self._width, min(400,self._max_height)),
- title="%(name)s "%ct.INFO+_("actions"), )
- if dlg.ShowModal() == wx.ID_OK:
+ if not hasattr(self, 'dlgActions'):
+ self.dlgActions = dialogs.ActionDialog(self,api.ACTIONS,-1,
+ size=(self._width, min(400,self._max_height)),
+ title="%(name)s "%ct.INFO+_("actions"), )
+ if self.dlgActions.ShowModal() == wx.ID_OK:
             self.set_dirty(True)
- label = dlg.GetStringSelection()
+ label = self.dlgActions.GetStringSelection()
             self.tree.append_form_by_label_to_selected(label)
             self.enable_actions(True)
- dlg.Destroy()
+ self.dlgActions.Hide()

$ bzr commit -m "remember last action dialog"
Committing to: /home/stani/sync/python/phatch/trunk/
modified phatch/pyWx/gui.py
Committed revision 555.

Changed in phatch:
status: Confirmed → Fix Committed
Revision history for this message
Nadia Alramli (nadiana) wrote :

Great! thanks.

Stani (stani)
Changed in phatch:
milestone: none → 0.2.1
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.