mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 18:12:10 +00:00
Fix serveral issues on Linux environments
1. fix the crash issue in ComboBox 2. fix the network agent directory not correct issue 3. fix the first 3d tab switch failed issue 4. fix the filemenu not correct issue Change-Id: I6a99218c0f7edbd57114ca1d9ff8c5c020d26d94 (cherry picked from commit b5e1b06af42aea9d1413be29dd58150b2ac8d470)
This commit is contained in:
@@ -111,7 +111,9 @@ int NetworkAgent::initialize_network_module(bool using_backup)
|
||||
{
|
||||
//int ret = -1;
|
||||
std::string library;
|
||||
auto plugin_folder = boost::filesystem::path(wxStandardPaths::Get().GetUserDataDir().ToUTF8().data()) / "plugins";
|
||||
std::string data_dir_str = data_dir();
|
||||
boost::filesystem::path data_dir_path(data_dir_str);
|
||||
auto plugin_folder = data_dir_path / "plugins";
|
||||
|
||||
if (using_backup) {
|
||||
plugin_folder = plugin_folder/"backup";
|
||||
@@ -323,7 +325,9 @@ void* NetworkAgent::get_bambu_source_entry()
|
||||
|
||||
//int ret = -1;
|
||||
std::string library;
|
||||
auto plugin_folder = boost::filesystem::path(wxStandardPaths::Get().GetUserDataDir().ToUTF8().data()) / "plugins";
|
||||
std::string data_dir_str = data_dir();
|
||||
boost::filesystem::path data_dir_path(data_dir_str);
|
||||
auto plugin_folder = data_dir_path / "plugins";
|
||||
#if defined(_MSC_VER) || defined(_WIN32)
|
||||
wchar_t lib_wstr[128];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user