Skip to content

Commit

Permalink
setup: reduce the number of times to save sysdict_paths.
Browse files Browse the repository at this point in the history
  • Loading branch information
ueno committed Sep 3, 2010
1 parent cd307b4 commit 7675bed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup/main.py
Expand Up @@ -191,15 +191,15 @@ def __up_sysdict_clicked_cb(self, widget):
path = model.get_path(_iter)
if path[0] > 0:
model.move_before(_iter, model.get_iter((path[0] - 1,)))
self.__set_sysdict_from_model(model)
self.__set_sysdict_from_model(model)

def __down_sysdict_clicked_cb(self, widget):
model, _iter = self.__sysdict.get_selection().get_selected()
if _iter:
path = model.get_path(_iter)
if path[0] < len(model) - 1:
model.move_after(_iter, model.get_iter((path[0] + 1,)))
self.__set_sysdict_from_model(model)
self.__set_sysdict_from_model(model)

def __set_sysdict_from_model(self, model):
paths = list()
Expand Down

0 comments on commit 7675bed

Please sign in to comment.