mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Cleanup
This commit is contained in:
@@ -272,8 +272,9 @@ namespace GHelper
|
|||||||
labelCharge.Click += LabelCharge_Click;
|
labelCharge.Click += LabelCharge_Click;
|
||||||
|
|
||||||
buttonDonate.Click += ButtonDonate_Click;
|
buttonDonate.Click += ButtonDonate_Click;
|
||||||
|
|
||||||
if (AppConfig.Get("start_count") > 10 && !AppConfig.Is("donate_click"))
|
int click = AppConfig.Get("donate_click");
|
||||||
|
if (AppConfig.Get("start_count") >= ((click <= 0) ? 10 : click + 50))
|
||||||
{
|
{
|
||||||
buttonDonate.BorderColor = colorTurbo;
|
buttonDonate.BorderColor = colorTurbo;
|
||||||
buttonDonate.Badge = true;
|
buttonDonate.Badge = true;
|
||||||
@@ -293,7 +294,7 @@ namespace GHelper
|
|||||||
|
|
||||||
private void ButtonDonate_Click(object? sender, EventArgs e)
|
private void ButtonDonate_Click(object? sender, EventArgs e)
|
||||||
{
|
{
|
||||||
AppConfig.Set("donate_click", 1);
|
AppConfig.Set("donate_click", AppConfig.Get("start_count"));
|
||||||
buttonDonate.Badge = false;
|
buttonDonate.Badge = false;
|
||||||
Process.Start(new ProcessStartInfo("https://g-helper.com/support") { UseShellExecute = true });
|
Process.Start(new ProcessStartInfo("https://g-helper.com/support") { UseShellExecute = true });
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user