Skip to content

Commit

Permalink
forgot modification flag.
Browse files Browse the repository at this point in the history
  • Loading branch information
rasberryrabbit committed Feb 26, 2018
1 parent 40b9c11 commit 70672f9
Showing 1 changed file with 20 additions and 8 deletions.
28 changes: 20 additions & 8 deletions nginxtool_main.pas
Original file line number Diff line number Diff line change
Expand Up @@ -301,13 +301,16 @@ procedure TFormNginxtool.VerboseNginxConfig;
if itemgrp<>nil then
item:=itemgrp.FindItemName('chunk_size');
if CheckBoxModConf.Checked then begin
chunk_modified:=True;
if item<>nil then begin
item.Value:=schunksize+';';
if Item.Value<>schunksize+';' then begin
item.Value:=schunksize+';';
chunk_modified:=True;
end;
end else
begin
if itemgrp<>nil then begin
item:=itemgrp.InsertNameValue(0,itemgrp.Level,'chunk_size',schunksize+';');
chunk_modified:=True;
end;
end;
end;
Expand All @@ -323,12 +326,15 @@ procedure TFormNginxtool.VerboseNginxConfig;
if itemgrp<>nil then
item:=itemgrp.FindItemName('meta');
if CheckBoxModConf.Checked then begin
chunk_modified:=True;
if item<>nil then begin
item.Value:=ComboBox_meta.Text+';';
if item.Value<>ComboBox_meta.Text+';' then begin
item.Value:=ComboBox_meta.Text+';';
chunk_modified:=True;
end;
end else begin
if itemgrp<>nil then begin
item:=itemgrp.InsertNameValue(0,itemgrp.Level,'meta',ComboBox_meta.Text+';');
chunk_modified:=True;
end;
end;
end;
Expand All @@ -339,12 +345,15 @@ procedure TFormNginxtool.VerboseNginxConfig;
if itemgrp<>nil then begin
item:=itemgrp.FindItemName('wait_video');
if CheckBoxModConf.Checked then begin
chunk_modified:=True;
if item<>nil then begin
item.Value:=ComboBox_waitvideo.Text+';';
if item.Value<>ComboBox_waitvideo.Text+';' then begin
item.Value:=ComboBox_waitvideo.Text+';';
chunk_modified:=True;
end;
end else begin
if itemgrp<>nil then begin
item:=itemgrp.InsertNameValue(0,itemgrp.Level,'wait_video',ComboBox_waitvideo.Text+';');
chunk_modified:=True;
end;
end;
end;
Expand All @@ -356,12 +365,15 @@ procedure TFormNginxtool.VerboseNginxConfig;
if itemgrp<>nil then begin
item:=itemgrp.FindItemName('wait_key');
if CheckBoxModConf.Checked then begin
chunk_modified:=True;
if item<>nil then begin
item.Value:=ComboBox_waitkey.Text+';';
if item.Value<>ComboBox_waitkey.Text+';' then begin
item.Value:=ComboBox_waitkey.Text+';';
chunk_modified:=True;
end;
end else begin
if itemgrp<>nil then begin
item:=itemgrp.InsertNameValue(0,itemgrp.Level,'wait_key',ComboBox_waitkey.Text+';');
chunk_modified:=True;
end;
end;
end;
Expand Down

0 comments on commit 70672f9

Please sign in to comment.