Fix settings requiring refresh to display updated values after changes

This commit is contained in:
ehpersonal38
2023-05-28 17:11:42 -04:00
parent f0be69d79a
commit 0ee4fbe260
+6
View File
@@ -313,6 +313,12 @@ if(isset($_GET['sendtest']) && $_GET['sendtest'] == "true") {
die();
}
// have to get the config again after we change the variables, so the UI reflects the changes too
if (file_exists($home.'/BirdNET-Pi/scripts/thisrun.txt')) {
$config = parse_ini_file($home.'/BirdNET-Pi/scripts/thisrun.txt');
} elseif (file_exists($home.'/BirdNET-Pi/scripts/thisrun.ini')) {
$config = parse_ini_file($home.'/BirdNET-Pi/scripts/thisrun.ini');
}
?>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>