notepad-plus-plus / notepad-plus-plus

Notepad++ official repository

Home Page:https://notepad-plus-plus.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] Improper item enabling when "Close Multiple Documents" menu is shown

alankilborn opened this issue · comments

Is there an existing issue for this?

  • I have searched the existing issues

Description of the Issue

Some menu items that should be disabled in certain circumstances are enabled.

Steps To Reproduce

  1. Have several file tabs open

2a. Right-click the first tab and choose Close Multiple Documents
OR
2b. Right-click the last tab and choose Close Multiple Documents

Current Behavior

For case 2a:
The Close All to the Left menu item is enabled.

For case 2b:
The Close All to the Right menu item is enabled.

Expected Behavior

For case 2a:
The Close All to the Left menu item should be disabled.

For case 2b:
The Close All to the Right menu item should be disabled.

Debug Information

Notepad++ v8.6.5   (64-bit)
Build time : Mar 29 2024 - 17:04:43
Path : C:\NotepadPlusPlus\Misc\_NoBackup\Releases\npp.8.6.5\npp.8.6.5.portable.x64\notepad++.exe
Command Line : -titleAdd="8.6.5 64-bit" -multiInst
Admin mode : OFF
Local Conf mode : ON
Cloud Config : OFF
Periodic Backup : ON
OS Name : Windows 11 Pro (64-bit
OS Version : 23H2
OS Build : 22631.3447
Current ANSI codepage : 1252
Plugins : 
    mimeTools (3.1)
    NppConverter (4.6)
    NppExport (0.4)
    PythonScript (3.0.16)

Anything else?

No response