ENH: some small refines

1. don't sync_tooltip for it is not used
2. enable the dll black list
3. add some log

Change-Id: I4f7ea008121cf7252ef32680b68f063d146661e5
This commit is contained in:
lane.wei 2022-10-21 21:28:18 +08:00 committed by Lane.Wei
parent 157b081363
commit d641f947d6
2 changed files with 12 additions and 12 deletions

View file

@ -1485,17 +1485,17 @@ bool CLI::setup(int argc, char **argv)
// Notify user that a blacklisted DLL was injected into BambuStudio process (for example Nahimic, see GH #5573). // Notify user that a blacklisted DLL was injected into BambuStudio process (for example Nahimic, see GH #5573).
// We hope that if a DLL is being injected into a BambuStudio process, it happens at the very start of the application, // We hope that if a DLL is being injected into a BambuStudio process, it happens at the very start of the application,
// thus we shall detect them now. // thus we shall detect them now.
//if (BlacklistedLibraryCheck::get_instance().perform_check()) { if (BlacklistedLibraryCheck::get_instance().perform_check()) {
// std::wstring text = L"Following DLLs have been injected into the BambuStudio process:\n\n"; std::wstring text = L"Following DLLs have been injected into the BambuStudio process:\n\n";
// text += BlacklistedLibraryCheck::get_instance().get_blacklisted_string(); text += BlacklistedLibraryCheck::get_instance().get_blacklisted_string();
// text += L"\n\n" text += L"\n\n"
// L"BambuStudio is known to not run correctly with these DLLs injected. " L"BambuStudio is known to not run correctly with these DLLs injected. "
// L"We suggest stopping or uninstalling these services if you experience " L"We suggest stopping or uninstalling these services if you experience "
// L"crashes or unexpected behaviour while using BambuStudio.\n" L"crashes or unexpected behaviour while using BambuStudio.\n"
// L"For example, ASUS Sonic Studio injects a Nahimic driver, which makes BambuStudio " L"For example, ASUS Sonic Studio injects a Nahimic driver, which makes BambuStudio "
// L"to crash on a secondary monitor, see BambuStudio github issue #5573"; L"to crash on a secondary monitor";
// MessageBoxW(NULL, text.c_str(), L"Warning"/*L"Incopatible library found"*/, MB_OK); MessageBoxW(NULL, text.c_str(), L"Warning"/*L"Incopatible library found"*/, MB_OK);
//} }
#endif #endif
// See Invoking prusa-slicer from $PATH environment variable crashes #5542 // See Invoking prusa-slicer from $PATH environment variable crashes #5542

View file

@ -288,7 +288,7 @@ void AppConfig::set_defaults()
if (get("backup_interval").empty()) { if (get("backup_interval").empty()) {
set("backup_interval", "10"); set("backup_interval", "10");
} }
if (get("curr_bed_type").empty()) { if (get("curr_bed_type").empty()) {
set("curr_bed_type", "0"); set("curr_bed_type", "0");
} }