mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-24 22:34:54 +02:00
Fix Reload Workspace not working
In case of reloading, openWorkSpace() needs to be called forced=true always. Fix #11551, close #15946
This commit is contained in:
parent
471a308bca
commit
06a03ea41e
@ -1073,7 +1073,6 @@ void ProjectPanel::popupMenuCmd(int cmdID)
|
||||
case IDM_PROJECT_RELOADWS:
|
||||
{
|
||||
NativeLangSpeaker *pNativeSpeaker = (NppParameters::getInstance()).getNativeLangSpeaker();
|
||||
bool forceOpen = false;
|
||||
if (_isDirty)
|
||||
{
|
||||
int res = pNativeSpeaker->messageBox("ProjectPanelReloadDirty",
|
||||
@ -1082,11 +1081,7 @@ void ProjectPanel::popupMenuCmd(int cmdID)
|
||||
L"Reload Workspace",
|
||||
MB_YESNO | MB_ICONQUESTION | MB_APPLMODAL);
|
||||
|
||||
if (res == IDYES)
|
||||
{
|
||||
forceOpen = true;
|
||||
}
|
||||
else if (res == IDNO)
|
||||
if (res == IDNO)
|
||||
{
|
||||
return;
|
||||
}
|
||||
@ -1094,7 +1089,7 @@ void ProjectPanel::popupMenuCmd(int cmdID)
|
||||
|
||||
if (doesFileExist(_workSpaceFilePath.c_str()))
|
||||
{
|
||||
openWorkSpace(_workSpaceFilePath.c_str(), forceOpen);
|
||||
openWorkSpace(_workSpaceFilePath.c_str(), true);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user