Fix context menu option from settings. (#108)
Co-authored-by: cake <admin@cakeandbanana.nl> Reviewed-on: #108 Reviewed-by: defnotken <defnotken@noreply.git.lightless-sync.org>
This commit was merged in pull request #108.
This commit is contained in:
@@ -99,6 +99,12 @@ internal class ContextMenuService : IHostedService
|
||||
if (!_pluginInterface.UiBuilder.ShouldModifyUi)
|
||||
return;
|
||||
|
||||
if (!_configService.Current.EnableRightClickMenus)
|
||||
{
|
||||
_logger.LogTrace("Right-click menus are disabled in configuration.");
|
||||
return;
|
||||
}
|
||||
|
||||
if (args.AddonName != null)
|
||||
{
|
||||
var addonName = args.AddonName;
|
||||
|
||||
Reference in New Issue
Block a user