File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -351,6 +351,8 @@ private void tsiSaveConf_Click(object sender, EventArgs e)
351
351
352
352
if ( sfd . ShowDialog ( ) == DialogResult . OK )
353
353
{
354
+ Config . ChargeLimitConf . CurVal = ( byte ) ( chkChgLim . Checked
355
+ ? numChgLim . Value : 0 ) ;
354
356
Config . Save ( sfd . FileName ) ;
355
357
SetLastConfPath ( sfd . FileName ) ;
356
358
btnRevert . Enabled = tsiRevert . Enabled = false ;
@@ -699,7 +701,6 @@ private void numChgLim_Changed(object sender, EventArgs e)
699
701
{
700
702
if ( Config is not null )
701
703
{
702
- Config . ChargeLimitConf . CurVal = ( byte ) numChgLim . Value ;
703
704
btnRevert . Enabled = tsiRevert . Enabled = true ;
704
705
}
705
706
}
@@ -895,6 +896,8 @@ private void LoadConf(YAMDCC_Config config)
895
896
private void ApplyConf ( )
896
897
{
897
898
// Save the updated config
899
+ Config . ChargeLimitConf . CurVal = ( byte ) ( chkChgLim . Checked
900
+ ? numChgLim . Value : 0 ) ;
898
901
Config . Save ( Paths . CurrentConfig ) ;
899
902
900
903
// Tell the service to reload and apply the updated config
You can’t perform that action at this time.
0 commit comments