Skip to content

Commit

Permalink
fix: fading setup issues
Browse files Browse the repository at this point in the history
see #59
forgotten fading_time in config.ini
fading time not modifying already existing tagged pen
  • Loading branch information
pubpub-zz committed Feb 26, 2021
1 parent 3df0b29 commit dc65102
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ppInk/config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ White_Tray_Icon = False

Hide_In_AltTab = False

Fading_Time=.1

# The folder that snapshots are saved to
Snapshot_Path = %USERPROFILE%/Pictures/gInk/

Expand Down
5 changes: 5 additions & 0 deletions src/FormOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -868,6 +868,11 @@ private void FadingTimeEd_Validating(object sender, CancelEventArgs e)
Root.TimeBeforeFading = f;
tb.BackColor = SystemColors.Window;
e.Cancel = false;
for (int i=0;i<Root.MaxPenCount;i++)
{
if(Root.PenAttr[i].ExtendedProperties.Contains(Root.FADING_PEN))
Root.PenAttr[i].ExtendedProperties.Add(Root.FADING_PEN, Root.TimeBeforeFading);
}
}
else
{
Expand Down

0 comments on commit dc65102

Please sign in to comment.