Skip to content

Commit

Permalink
Fix log level menu issue (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
ElemenTP authored Aug 8, 2021
1 parent 0b14c9c commit e1cd6f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MenuUtil.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ namespace MenuUtil

void UpdateLogLevelMenu() noexcept
{
CheckMenuRadioItem(g_hLogLevelMenu, 0, 4, static_cast<UINT>(g_clashConfig.logLevel), MF_BYPOSITION);
CheckMenuRadioItem(g_hLogLevelMenu, 0, 4, static_cast<UINT>(g_clashConfig.logLevel) - 1, MF_BYPOSITION);
}

void UpdatePortsMenu()
Expand Down

0 comments on commit e1cd6f5

Please sign in to comment.