only: flexible UPDATE_FW_HELP_URL

This commit is contained in:
rusefillc 2024-08-08 23:55:05 -04:00
parent 572018fe7a
commit 93b3132d7c
3 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,4 @@
auto_update_root_url=https://rusefi.com/build_server
show_pcan=true
show_simulator=true
UPDATE_FW_HELP_URL=https://github.com/rusefi/rusefi/wiki/HOWTO-Update-Firmware

View File

@ -34,4 +34,8 @@ public class UiProperties {
public static boolean isDefaultWhitelabel() {
return ConnectionAndMeta.DEFAULT_WHITE_LABEL.equals(getWhiteLabel());
}
public static String getUpdateHelpUrl() {
return properties.getProperty("UPDATE_FW_HELP_URL");
}
}

View File

@ -1,6 +1,7 @@
package com.rusefi.maintenance;
import com.devexperts.logging.Logging;
import com.rusefi.UiProperties;
import com.rusefi.config.generated.Integration;
import com.rusefi.core.FindFileHelper;
import com.rusefi.FileLog;
@ -48,7 +49,6 @@ public class ProgramSelector {
private static final String INSTALL_OPENBLT = "Install OpenBLT";
private static final String OPENBLT_CAN = "OpenBLT via CAN";
private static final String HELP = "https://github.com/rusefi/rusefi/wiki/HOWTO-Update-Firmware";
private final JPanel content = new JPanel(new BorderLayout());
private final JLabel noHardware = new JLabel("Nothing detected");
@ -332,7 +332,7 @@ public class ProgramSelector {
@NotNull
public static JComponent createHelpButton() {
return new URLLabel("HOWTO Update Firmware", HELP);
return new URLLabel("HOWTO Update Firmware", UiProperties.getUpdateHelpUrl());
}
public JPanel getControl() {