aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.ServerApplication/ServerNotifyIcon.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2017-06-24 14:30:45 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2017-06-24 14:30:45 -0400
commit0a379fc27c2b89769931fe672757eb1953a31492 (patch)
treedd0d51e8f8a9e4957e352e2a1037dacb8d9f15c7 /MediaBrowser.ServerApplication/ServerNotifyIcon.cs
parent5759ba86564d6e2a6529b8800e37ad916ac690fa (diff)
removed dead code
Diffstat (limited to 'MediaBrowser.ServerApplication/ServerNotifyIcon.cs')
-rw-r--r--MediaBrowser.ServerApplication/ServerNotifyIcon.cs3
1 files changed, 1 insertions, 2 deletions
diff --git a/MediaBrowser.ServerApplication/ServerNotifyIcon.cs b/MediaBrowser.ServerApplication/ServerNotifyIcon.cs
index c421dd9ebd..cc8656f23d 100644
--- a/MediaBrowser.ServerApplication/ServerNotifyIcon.cs
+++ b/MediaBrowser.ServerApplication/ServerNotifyIcon.cs
@@ -45,7 +45,6 @@ namespace MediaBrowser.ServerApplication
components = new System.ComponentModel.Container();
- var resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
contextMenuStrip1 = new ContextMenuStrip(components);
notifyIcon1 = new NotifyIcon(components);
@@ -62,7 +61,7 @@ namespace MediaBrowser.ServerApplication
// notifyIcon1
//
notifyIcon1.ContextMenuStrip = contextMenuStrip1;
- notifyIcon1.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
+ notifyIcon1.Icon = new System.Drawing.Icon(GetType().Assembly.GetManifestResourceStream(GetType().Namespace + ".Icon.ico"));
notifyIcon1.Text = "Emby";
notifyIcon1.Visible = true;
//