Ignore failure to call SetAutoPop when not available. #3596

This commit is contained in:
Alessandro Ranellucci 2016-11-30 11:45:31 +01:00
parent 6cdff99df3
commit 2e82fb01a6

View File

@ -41,7 +41,8 @@ sub new {
# set default tooltip timer in msec
# SetAutoPop supposedly accepts long integers but some bug doesn't allow for larger values
Wx::ToolTip::SetAutoPop(32767);
# (SetAutoPop is not available on GTK.)
eval { Wx::ToolTip::SetAutoPop(32767) };
# initialize status bar
$self->{statusbar} = Slic3r::GUI::ProgressStatusBar->new($self, -1);