Fix bug "'total sp' counter seems to get messed up when switching
between characters". It seems that we were starting the timer to soon,
which caused the get_is_topmost() method return False when it shouldn't.
Moved the timer creation until after the character sheet is created.
Seems to work now.
progress_bar.set_fraction(1)
progress_bar.destroy()
+ glib.timeout_add_seconds(self.UPDATE_INTERVAL, self.update_live_sp)
+
def display_skill_in_training(self, vbox):
skill = self.controller.get_skill_in_training(self.uid, self.char_id)
self.spps = self.controller.get_spps(self.uid, self.char_id)[0]
- glib.timeout_add_seconds(self.UPDATE_INTERVAL, self.update_live_sp)
def fill_stats(self, box):
self.win.show_all()
hildon.hildon_gtk_window_set_progress_indicator(self.win, 0)
+
+ # if we start the timer too early, get_is_topmost() returns False
+ glib.timeout_add_seconds(self.UPDATE_INTERVAL, self.update_live_sp)
def display_skill_in_training(self, vbox):
skill = self.controller.get_skill_in_training(self.uid, self.char_id)
self.spps = self.controller.get_spps(self.uid, self.char_id)[0]
- glib.timeout_add_seconds(self.UPDATE_INTERVAL, self.update_live_sp)
def fill_stats(self, box):