* Bug 16677 fixed: offline, atomsInstall() was flashing the console
[scilab.git] / scilab / modules / atoms / macros / atoms_internals / atomsDESCRIPTIONread.sci
index 08ee4a5..c03a185 100644 (file)
@@ -116,7 +116,13 @@ function description_out = atomsDESCRIPTIONread(file_in,additional)
         file_in));
     end
 
-    winId = atomsOpenProgressBar(_("Updating Atoms modules database..."), %t)
+    if size(lines_in,1)>1000 then
+        winId = atomsOpenProgressBar(_("Updating Atoms modules database..."), %t)
+    else
+        // No progression bar required when the DESCRIPTION file is so short that
+        // its processing will be very fast:
+        winId = []
+    end
     for i=1:(size(lines_in,"*")+1)
 
         atomsUpdateProgressBar(winId, i / size(lines_in,"*"));