~3v1n0/unity/scale-window-cast-protection

« back to all changes in this revision

Viewing changes to launcher/TooltipManager.cpp

  • Committer: handsome_feng
  • Date: 2016-03-17 04:22:27 UTC
  • mto: This revision was merged to the branch mainline in revision 4090.
  • Revision ID: 445865575@qq.com-20160317042227-ixllw6aftqusmmd9
fix the problem in tooltip

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 */
20
20
 
21
21
#include "TooltipManager.h"
 
22
#include "unity-shared/UnitySettings.h"
22
23
 
23
24
namespace unity
24
25
{
40
41
 
41
42
  StopTimer();
42
43
  if (icon_)
43
 
    icon_->HideTooltip();
 
44
  {
 
45
    if (Settings::Instance().launcher_position() == LauncherPosition::LEFT)
 
46
      icon_->HideTooltip();
 
47
    else
 
48
      icon_->PromptHideTooltip();
 
49
  }
44
50
 
45
51
  icon_ = icon_under_mouse;
46
52