diff --git a/Raccoon.Ninja.WForm.GlucoseIcon/MainForm.cs b/Raccoon.Ninja.WForm.GlucoseIcon/MainForm.cs index 0bed0b6..f14de73 100644 --- a/Raccoon.Ninja.WForm.GlucoseIcon/MainForm.cs +++ b/Raccoon.Ninja.WForm.GlucoseIcon/MainForm.cs @@ -22,11 +22,10 @@ public partial class MainForm : Form private static partial int DestroyIcon(IntPtr handle); // Wrapper method to call the P/Invoke method and convert the return value to bool - private static bool DestroyIconWrapper(IntPtr handle) { - if (DestroyIcon(handle) == 0) return true; + private static void DestroyIconWrapper(IntPtr handle) { + if (DestroyIcon(handle) == 0) return; Logger.LogTrace("DestroyIcon failed with error code: {ErrorCode}", Marshal.GetLastWin32Error()); - return false; } public MainForm() diff --git a/readme.md b/readme.md index 49a7d21..773e518 100644 --- a/readme.md +++ b/readme.md @@ -10,7 +10,7 @@ [![Technical Debt](https://sonarcloud.io/api/project_badges/measure?project=brenordv_nightscout-companion-apps&metric=sqale_index)](https://sonarcloud.io/summary/new_code?id=brenordv_nightscout-companion-apps) [![CGM Data Display App CI/CD Using Reusable Workflow](https://github.com/brenordv/nightscout-companion-apps/actions/workflows/master-publish-glucose-mon-app.yml/badge.svg)](https://github.com/brenordv/nightscout-companion-apps/actions/workflows/master-publish-glucose-mon-app.yml) [![Data API Function App CI/CD Workflow Using Template](https://github.com/brenordv/nightscout-companion-apps/actions/workflows/master-publish-dataapi.yml/badge.svg)](https://github.com/brenordv/nightscout-companion-apps/actions/workflows/master-publish-dataapi.yml) -[![Data Transfer Function CI/CD Using Reusable Workflow](https://github.com/brenordv/nightscout-companion-apps/actions/workflows/master-publish-datatransfer.yml/badge.svg)](https://github.com/brenordv/nightscout-companion-apps/actions/workflows/master-publish-datatransfer.yml) +[![Data Transfer Function CI/CD Using Reusable Workflow](https://github.com/brenordv/nightscout-companion-apps/actions/workflows/master-publish-scheduledtasks.yml/badge.svg)](https://github.com/brenordv/nightscout-companion-apps/actions/workflows/master-publish-scheduledtasks.yml) # Nightscout Companion Apps