Author Topic: Remove files silently fails when no file has been selected.  (Read 1799 times)

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2319
Remove files silently fails when no file has been selected.
« on: September 23, 2021, 07:53:11 pm »
Remove files silently fails when no file has been selected just after a project is loaded.

1) load a project
2) click main menu/Project/Remove files...

Nothing happens.
Shouldn't the user be given a message to select a file first?
Code
Name                    : Code::Blocks
Version                 : svn-r12516
SDK Version             : 2.14.0
Scintilla Version       : 3.7.5
Author                  : The Code::Blocks Team
E-mail                  : info@codeblocks.org
Website                 : http://www.codeblocks.org
OS                      : Windows 10 (build 18363), 64-bit edition
Scaling factor          : 1.000000
Detected scaling factor : 1.000000
Display PPI             : 120x120
Display count           : 1
Display 0 (\\.\DISPLAY1): XY=[0,0]; Size=[1920,1080]; Primary

wxWidgets Library (wxMSW port)
Version 3.1.5 (Unicode: wchar_t, debug level: 1),
compiled at Jun  5 2021 11:08:36

Runtime version of toolkit used is 10.0.
« Last Edit: September 23, 2021, 07:56:05 pm by Pecan »

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 837
Re: Remove files silently fails when no file has been selected.
« Reply #1 on: September 24, 2021, 08:24:45 am »
IMHO the better option would be disabling the option if there are no selected files, but a message is easier and the user is expecting a popup anyway.