fix error when no settings directory

and a typo
This commit is contained in:
remi durand 2021-04-04 16:42:02 +02:00
parent 22524f6184
commit 89f777d72d
2 changed files with 3 additions and 2 deletions

View File

@ -149,7 +149,7 @@ DPIFrame(NULL, wxID_ANY, "", wxDefaultPosition, wxDefaultSize, wxDEFAULT_FRAME_S
if (wxGetApp().is_editor())
m_statusbar->embed(this);
m_statusbar->set_status_text(_L("Version") + " " +
SLIC3R_VERSION +
SLIC3R_VERSION + " " +
_L("Remember to check for updates at " SLIC3R_DOWNLOAD));
// initialize tabpanel and menubar

View File

@ -390,7 +390,8 @@ void PresetUpdater::priv::sync_config(const VendorMap vendors)
void PresetUpdater::priv::check_install_indices() const
{
BOOST_LOG_TRIVIAL(info) << "Checking if indices need to be installed from resources...";
if (!fs::exists(rsrc_path))
return;
for (auto &dir_entry : boost::filesystem::directory_iterator(rsrc_path))
if (is_idx_file(dir_entry)) {
const auto &path = dir_entry.path();