BOSSoNe0013 / track-o-bot

The friendly Hearthstone Tracker (Linux port)
https://trackobot.com
GNU Lesser General Public License v2.1
39 stars 6 forks source link

ToB keeps displaying the cards history in game even though the option is disabled #47

Closed terzag closed 8 years ago

terzag commented 8 years ago

With a recent update to Track-o-Bot (Windows), there's a new tracking option that displays the cards drawn during the game when moving over the deck. It's available too in this Linux port and works well.

The problem is that I want to disable this behaviour, so I uncheked the option in the preferences but it's still active in game.

BOSSoNe0013 commented 8 years ago

Thanks for feedback, i'll have a look on this. Have you tried on Windows or Mac as this behaviour is global and not modified by the Linux version ?

terzag commented 8 years ago

Haven't checked on Windows or Mac (don't have access to these OS). I'll ask the original ToB developer and report.

angrylinuxuser commented 8 years ago

my fault! i didnt put check in Overlay::handleFocuschanged to check if overlay was enabled

void Overlay::HandleFocusChanged(bool focus) { if( Hearthstone::Instance()->GameRunning() && Settings::Instance()->OverlayEnabled() ) { focus ? show() : hide(); } }

or void Overlay::HandleFocusChanged(bool focus) { focus ? Update() : hide(); } }

BOSSoNe0013 commented 8 years ago

ah ok i'll look at your code, thanks @angrylinuxuser

BOSSoNe0013 commented 8 years ago

Fixed 7b234257e6b1e0679aa17dc4dbbf3371a37ebc30