Skip to content

Commit

Permalink
コンテキストメニューを表示すると例外が発生していたのを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
esperecyan committed Sep 5, 2023
1 parent feb8224 commit c5988f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 42 deletions.
8 changes: 2 additions & 6 deletions App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,8 @@ private App()

var engineServer = new EngineServer(Settings.Default.EnginePort);

var contextMenuStrip = new ContextMenuStrip()
{
Renderer = new VolumeIconRenderer(),
};
var menuItems = contextMenuStrip.Items;
menuItems.Add(new ToolStripMenuItem("終了", image: null, (sender, e) => this.Shutdown()));
var contextMenuStrip = new ContextMenuStrip();
contextMenuStrip.Items.Add("終了", image: null, (sender, e) => this.Shutdown());

var notifyIcon = new NotifyIcon()
{
Expand Down
36 changes: 0 additions & 36 deletions VolumeIconRenderer.cs

This file was deleted.

0 comments on commit c5988f8

Please sign in to comment.