mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-16 17:25:57 +08:00
fix error when no settings directory
and a typo
This commit is contained in:
parent
22524f6184
commit
89f777d72d
@ -149,7 +149,7 @@ DPIFrame(NULL, wxID_ANY, "", wxDefaultPosition, wxDefaultSize, wxDEFAULT_FRAME_S
|
|||||||
if (wxGetApp().is_editor())
|
if (wxGetApp().is_editor())
|
||||||
m_statusbar->embed(this);
|
m_statusbar->embed(this);
|
||||||
m_statusbar->set_status_text(_L("Version") + " " +
|
m_statusbar->set_status_text(_L("Version") + " " +
|
||||||
SLIC3R_VERSION +
|
SLIC3R_VERSION + " " +
|
||||||
_L("Remember to check for updates at " SLIC3R_DOWNLOAD));
|
_L("Remember to check for updates at " SLIC3R_DOWNLOAD));
|
||||||
|
|
||||||
// initialize tabpanel and menubar
|
// initialize tabpanel and menubar
|
||||||
|
@ -390,7 +390,8 @@ void PresetUpdater::priv::sync_config(const VendorMap vendors)
|
|||||||
void PresetUpdater::priv::check_install_indices() const
|
void PresetUpdater::priv::check_install_indices() const
|
||||||
{
|
{
|
||||||
BOOST_LOG_TRIVIAL(info) << "Checking if indices need to be installed from resources...";
|
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))
|
for (auto &dir_entry : boost::filesystem::directory_iterator(rsrc_path))
|
||||||
if (is_idx_file(dir_entry)) {
|
if (is_idx_file(dir_entry)) {
|
||||||
const auto &path = dir_entry.path();
|
const auto &path = dir_entry.path();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user