Skip to content

Commit

Permalink
Fixed notify icon not properly being removed from systray.
Browse files Browse the repository at this point in the history
  • Loading branch information
moorer2k authored and moorer2k committed Mar 12, 2024
1 parent ad82e8f commit 6cddcbf
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
5 changes: 5 additions & 0 deletions FormMain.vb
Original file line number Diff line number Diff line change
Expand Up @@ -108,4 +108,9 @@ Public Class FormMain
Private Sub GitToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles GitToolStripMenuItem.Click
Process.Start("https://github.com/moorer2k/SpotiKeys")
End Sub

Private Sub FormMain_FormClosing(sender As Object, e As FormClosingEventArgs) Handles Me.FormClosing
NotifyIcon1.Visible = False
NotifyIcon1.Dispose()
End Sub
End Class
3 changes: 1 addition & 2 deletions My Project/AssemblyInfo.vb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
Imports System
Imports System.Reflection
Imports System.Reflection
Imports System.Runtime.InteropServices

' General Information about an assembly is controlled through the following
Expand Down
1 change: 0 additions & 1 deletion My Project/Resources.Designer.vb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions SpotifyHelper.vb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
Imports System.Runtime.InteropServices
Imports System.Text
Imports System.Text

Module SpotifyHelper

Expand Down

0 comments on commit 6cddcbf

Please sign in to comment.