Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DanWBR committed Oct 3, 2022
1 parent 8ed0015 commit 5ed6552
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions DWSIM.UI.Desktop.Forms/Forms/Flowsheet/Flowsheet.eto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1529,6 +1529,13 @@ void InitializeComponent()
var btnSingleDonation = new Button {Text = "One-Time Donation", ImagePosition = ButtonImagePosition.Left, Height = 24, Image = new Bitmap(Bitmap.FromResource(imgprefix + "coffee.png", this.GetType().Assembly)).WithSize(16, 16) };
var btnMonthlyDonation = new Button { Text = "Monthly Donation", ImagePosition = ButtonImagePosition.Left, Height = 24, Image = new Bitmap(Bitmap.FromResource(imgprefix + "icons8-patreon.png", this.GetType().Assembly)).WithSize(16, 16) };

if (s.RunningPlatform() == s.Platform.Linux)
{
lbldonate.Text = "Support DWSIM development and maintenance.";
btnSingleDonation.Width = (int)(140 * sf);
btnMonthlyDonation.Width = (int)(140 * sf);
}

btnSingleDonation.Click += (s, e) => {
"https://www.buymeacoffee.com/dwsim".OpenURL();
};
Expand Down

0 comments on commit 5ed6552

Please sign in to comment.