Stop the SP counter when window not on top
authorRyan Campbell <campbellr@gmail.com>
Thu, 20 May 2010 01:31:29 +0000 (19:31 -0600)
committerRyan Campbell <campbellr@gmail.com>
Thu, 20 May 2010 01:31:29 +0000 (19:31 -0600)
commit2e8cec2c65f19632d99e635ac94b650dec70d10d
treed6df232c87529c54ebec1d49f163e35358a8ccf8
parente47bec2e992f5e83e85da0d54deb34d360ab85e5
Stop the SP counter when window not on top

Previously our timer that increments the 'total sp' label kept ticking
away even when the window for the character sheet wasn't
visibile. The timer callback now checks if the window is visible (with
get_is_topmost()), and if not, stops the timer.

The Diablo GUI may need to try something different, not sure.
package/src/mevemon.py
package/src/ui/fremantle/gui.py