diff options
| author | Luke <luke.pulverenti@gmail.com> | 2017-06-24 14:37:49 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-06-24 14:37:49 -0400 |
| commit | 287178cbf5321ad3e4b21f2e2e374a272a136b75 (patch) | |
| tree | e97323a2c9c31d0f045cf15ceddbc5f635cef0a7 /MediaBrowser.ServerApplication/ServerNotifyIcon.cs | |
| parent | c9be2c21f42a3590e0c5860728b9b283d7648d5e (diff) | |
| parent | 31a3e0f5c49804e9acceb7718542d1c04445425b (diff) | |
Merge pull request #2726 from MediaBrowser/dev
Dev
Diffstat (limited to 'MediaBrowser.ServerApplication/ServerNotifyIcon.cs')
| -rw-r--r-- | MediaBrowser.ServerApplication/ServerNotifyIcon.cs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/MediaBrowser.ServerApplication/ServerNotifyIcon.cs b/MediaBrowser.ServerApplication/ServerNotifyIcon.cs index c421dd9eb..cc8656f23 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; // |
