no message

This commit is contained in:
2025-01-11 23:19:24 +03:00
parent 7a06c2ce2b
commit d2c4794690
9 changed files with 21 additions and 29 deletions

View File

@@ -185,10 +185,10 @@ public class Precompilation extends Pass<db_project_info> {
protected void body() throws Exception {
if (Utils_.isWindows()) {
name_to_kill = "make.exe";
StartProcess(Utils_.DQuotes(Global.properties.LocalMakePathWindows) + " -j " + (Global.mainModule.getDb()).settings.get(SettingName.Kernels).toString(),
StartProcess(Utils_.DQuotes(Global.properties.LocalMakePathWindows) + " -j " + Global.properties.Kernels,
target.compilation_maxtime);
} else
StartProcess("make -j " + (Global.mainModule.getDb()).settings.get(SettingName.Kernels).toString(), target.compilation_maxtime);
StartProcess("make -j " + Global.properties.Kernels, target.compilation_maxtime);
}
protected void StartProcess(String command, int TA) throws Exception {
killed = false;

View File

@@ -8,6 +8,7 @@ import Common.Visual.Windows.Dialog.VFileChooser;
import _VisualDVM.Global;
import _VisualDVM.GlobalProperties;
import _VisualDVM.Passes.PassCode;
import _VisualDVM.Utils;
import javax.swing.*;
import java.io.File;
@@ -35,6 +36,10 @@ public class UpdateProperty extends Pass<Object> {
return true;
}
switch (name){
case "Kernels":
if (sliderNumberForm.ShowDialog(description, oldValue, 1, Utils.getMaxKernels()))
newValue=sliderNumberForm.Result;
break;
case "LocalMakePathWindows":
fileChooser.setTitle(description);
File file = fileChooser.ShowDialog();

View File

@@ -41,19 +41,6 @@ public class UpdateSetting extends Pass<DBSetting> {
break;
}
break;
case IntField:
int min = 0;
int max = 0;
switch (target.Name) {
case Kernels:
min = 1;
max = Utils.getMaxKernels();
SliderNumberForm ffff = new SliderNumberForm();
if (ffff.ShowDialog(target.Name.getDescription(), target.toInt32(), min, max))
NewValue = String.valueOf(ffff.Result);
break;
}
break;
}
} else {
NewValue = args[1].toString();