* Deleted/Temporary commented redundant call of app_config->save()
 * Use app_config->get_bool() function on all places
This commit is contained in:
YuSanka 2023-02-13 17:20:06 +01:00
parent a913bd493f
commit b71e0bfd34
22 changed files with 139 additions and 137 deletions

View file

@ -1052,7 +1052,7 @@ void ogStaticText::SetPathEnd(const std::string& link)
event.Skip();
} );
Bind(wxEVT_ENTER_WINDOW, [this, link](wxMouseEvent& event) {
SetToolTip(OptionsGroup::get_url(get_app_config()->get("suppress_hyperlinks") != "1" ? link : std::string()));
SetToolTip(OptionsGroup::get_url(!get_app_config()->get_bool("suppress_hyperlinks") ? link : std::string()));
FocusText(true);
event.Skip();
});
@ -1061,7 +1061,7 @@ void ogStaticText::SetPathEnd(const std::string& link)
void ogStaticText::FocusText(bool focus)
{
if (get_app_config()->get("suppress_hyperlinks") == "1")
if (get_app_config()->get_bool("suppress_hyperlinks"))
return;
SetFont(focus ? Slic3r::GUI::wxGetApp().link_font() :