Skip to content

Commit

Permalink
Avoid double "Loading modules" message (#1631)
Browse files Browse the repository at this point in the history
  • Loading branch information
morevnaproject authored Aug 12, 2020
1 parent 4e0e245 commit e78053d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions synfig-core/src/synfig/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -345,8 +345,11 @@ synfig::Main::Main(const synfig::String& basepath,ProgressCallback *cb):
for(i=0;i<locations.size();i++)
if(retrieve_modules_to_load(locations[i],modules_to_load))
{
synfig::info(_("Loading modules from %s"), Glib::locale_from_utf8(locations[i]).c_str());
if(cb)cb->task(strprintf(_("Loading modules from %s"),locations[i].c_str()));
if(cb) {
cb->task(strprintf(_("Loading modules from %s"),locations[i].c_str()));
} else {
synfig::info(_("Loading modules from %s"), locations[i].c_str());
}
break;
}

Expand Down

0 comments on commit e78053d

Please sign in to comment.