File: Disable-preset-update-and-version-check-by-default.patch

package info (click to toggle)
slic3r-prusa 2.9.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 196,524 kB
  • sloc: cpp: 534,736; ansic: 71,269; yacc: 1,311; makefile: 256; lex: 241; sh: 113
file content (41 lines) | stat: -rw-r--r-- 1,498 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
From: Antoni Villalonga <antoni@friki.cat>
Date: Sun, 9 Aug 2020 00:15:17 +0200
Subject: Disable preset update and app version check by default

Bug-Debian: http://bugs.debian.org/961903
Forwarded: not-needed
Last-Update: 2023-09-28
Origin: vendor

===================================================================
---
 src/libslic3r/AppConfig.cpp | 2 +-
 src/slic3r/GUI/GUI_App.cpp  | 2 --
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/libslic3r/AppConfig.cpp b/src/libslic3r/AppConfig.cpp
index 8b451a6..2dbb00e 100644
--- a/src/libslic3r/AppConfig.cpp
+++ b/src/libslic3r/AppConfig.cpp
@@ -87,7 +87,7 @@ void AppConfig::set_defaults()
             set("drop_project_action", "1");
 
         if (get("preset_update").empty())
-            set("preset_update", "1");
+            set("preset_update", "0");
 
         if (get("export_sources_full_pathnames").empty())
             set("export_sources_full_pathnames", "0");
diff --git a/src/slic3r/GUI/GUI_App.cpp b/src/slic3r/GUI/GUI_App.cpp
index 7039f82..1604730 100644
--- a/src/slic3r/GUI/GUI_App.cpp
+++ b/src/slic3r/GUI/GUI_App.cpp
@@ -857,8 +857,6 @@ void GUI_App::post_init()
                 // sees something else than "we want something" on the first start.
                 show_send_system_info_dialog_if_needed();   
             }  
-            // app version check is asynchronous and triggers blocking dialog window, better call it last
-            this->app_version_check(false);
         });
     }