mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-07 23:17:35 -06:00
Minor fixes continued
This commit is contained in:
parent
17811c997b
commit
ea46af82d6
3 changed files with 6 additions and 13 deletions
|
@ -4467,17 +4467,7 @@ std::string GUI_App::format_display_version()
|
|||
{
|
||||
if (!version_display.empty()) return version_display;
|
||||
|
||||
auto version_text = std::string(SLIC3R_VERSION);
|
||||
int len = version_text.length();
|
||||
for (int i = 0, j = 0; i < len; ++i) {
|
||||
if (!(version_text[i] == '0' && j == 0))
|
||||
version_display += version_text[i];
|
||||
|
||||
if (version_text[i] == '.')
|
||||
j = 0;
|
||||
else
|
||||
++j;
|
||||
}
|
||||
version_display = SoftFever_VERSION;
|
||||
return version_display;
|
||||
}
|
||||
|
||||
|
@ -4626,6 +4616,9 @@ void GUI_App::sync_preset(Preset* preset)
|
|||
|
||||
void GUI_App::start_sync_user_preset(bool with_progress_dlg)
|
||||
{
|
||||
if (app_config->get("stealth_mode") == "true")
|
||||
return;
|
||||
|
||||
if (!m_agent || !m_agent->is_user_login()) return;
|
||||
|
||||
// has already start sync
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue