Skip to content

Commit

Permalink
Fix Tip visibility oversight with non-object info
Browse files Browse the repository at this point in the history
  • Loading branch information
Vankata453 committed Nov 9, 2023
1 parent 2903430 commit f89c7fc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/editor/tip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
Tip::Tip() :
m_strings(),
m_warnings(),
m_header()
m_header(),
m_visible(false)
{
}

Expand All @@ -36,13 +37,17 @@ Tip::set_info(const std::string& header, const std::vector<std::string>& text)
{
m_header = header;
m_strings = text;

m_visible = true;
}

void
Tip::set_info(const std::string& text)
{
m_header = text;
m_strings.clear();

m_visible = true;
}

void
Expand Down

0 comments on commit f89c7fc

Please sign in to comment.