Skip to content

Commit cc29f70

Browse files
authored
Merge pull request #27 from zLeqitEclipse/master
Comparing to Internal Name of Command in void GetCommandType(...)
2 parents 0a756be + 14c4e21 commit cc29f70

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Karpach.RemoteShutdown.Controller/Helpers/TrayCommandHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public string GetText(TrayCommandType commandType)
3939

4040
public TrayCommandType? GetCommandType(string commandName)
4141
{
42-
return Commands.SingleOrDefault(c => string.Equals(c.Name, commandName, StringComparison.InvariantCultureIgnoreCase))?.CommandType;
42+
return Commands.SingleOrDefault(c => string.Equals(c.CommandType.ToString(), commandName, StringComparison.InvariantCultureIgnoreCase))?.CommandType;
4343
}
4444

4545
public void RunCommand(TrayCommandType commandType)

Karpach.RemoteShutdown.Controller/Karpach.RemoteShutdown.Controller.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<ImportWindowsDesktopTargets>true</ImportWindowsDesktopTargets>
88
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
99
<Platforms>x64</Platforms>
10+
<PublishSingleFile>true</PublishSingleFile>
1011
</PropertyGroup>
1112
<PropertyGroup>
1213
<ApplicationIcon>Icons\switch.ico</ApplicationIcon>

Karpach.RemoteShutdown.Controller/Properties/PublishProfiles/FolderProfile.pubxml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
1010
<PublishProtocol>FileSystem</PublishProtocol>
1111
<TargetFramework>net6.0-windows</TargetFramework>
1212
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
13-
<SelfContained>false</SelfContained>
14-
<PublishSingleFile>true</PublishSingleFile>
13+
<SelfContained>true</SelfContained>
1514
<PublishReadyToRun>false</PublishReadyToRun>
1615
</PropertyGroup>
1716
</Project>

0 commit comments

Comments
 (0)