diff options
| author | Michael <[email protected]> | 2017-03-06 12:14:41 -0500 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-03-06 12:14:47 -0500 |
| commit | 2d49d6e7679776d01d6eb0d15fc25d2e266d1fa1 (patch) | |
| tree | c814285b3dad0b391e04191d99e997d3b7189598 | |
| parent | 9e30864a106a1a9b5dab0ffd6c333951d3c91dd2 (diff) | |
| download | shiftos_thereturn-2d49d6e7679776d01d6eb0d15fc25d2e266d1fa1.tar.gz shiftos_thereturn-2d49d6e7679776d01d6eb0d15fc25d2e266d1fa1.tar.bz2 shiftos_thereturn-2d49d6e7679776d01d6eb0d15fc25d2e266d1fa1.zip | |
One last little bug.
| -rw-r--r-- | ShiftOS.WinForms/WinformsDesktop.cs | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/ShiftOS.WinForms/WinformsDesktop.cs b/ShiftOS.WinForms/WinformsDesktop.cs index 4f3328b..a53ae3a 100644 --- a/ShiftOS.WinForms/WinformsDesktop.cs +++ b/ShiftOS.WinForms/WinformsDesktop.cs @@ -138,23 +138,28 @@ namespace ShiftOS.WinForms } } - if(SaveSystem.CurrentSave != null) + try { - if(SaveSystem.CurrentSave.LastMonthPaid != DateTime.Now.Month) + if (SaveSystem.CurrentSave != null) { - if(SaveSystem.CurrentSave.Codepoints >= DownloadManager.GetAllSubscriptions()[SaveSystem.CurrentSave.ShiftnetSubscription].CostPerMonth) + if (SaveSystem.CurrentSave.LastMonthPaid != DateTime.Now.Month) { - SaveSystem.CurrentSave.Codepoints -= DownloadManager.GetAllSubscriptions()[SaveSystem.CurrentSave.ShiftnetSubscription].CostPerMonth; - SaveSystem.CurrentSave.LastMonthPaid = DateTime.Now.Month; - } - else - { - SaveSystem.CurrentSave.ShiftnetSubscription = 0; - SaveSystem.CurrentSave.LastMonthPaid = DateTime.Now.Month; - Infobox.Show("Shiftnet", "You do not have enough Codepoints to pay for your Shiftnet subscription this month. You have been downgraded to the free plan."); + if (SaveSystem.CurrentSave.Codepoints >= DownloadManager.GetAllSubscriptions()[SaveSystem.CurrentSave.ShiftnetSubscription].CostPerMonth) + { + SaveSystem.CurrentSave.Codepoints -= DownloadManager.GetAllSubscriptions()[SaveSystem.CurrentSave.ShiftnetSubscription].CostPerMonth; + SaveSystem.CurrentSave.LastMonthPaid = DateTime.Now.Month; + } + else + { + SaveSystem.CurrentSave.ShiftnetSubscription = 0; + SaveSystem.CurrentSave.LastMonthPaid = DateTime.Now.Month; + Infobox.Show("Shiftnet", "You do not have enough Codepoints to pay for your Shiftnet subscription this month. You have been downgraded to the free plan."); + } } } } + catch { } + btnnotifications.Left = lbtime.Left - btnnotifications.Width - 2; btnnotifications.Top = (desktoppanel.Height - btnnotifications.Height) / 2; |
