Commit 9f8eeb40 authored by Agata Cacko's avatar Agata Cacko
Browse files

Update the button in workspace chooser after saving a workspace

Before this commit, the button in workspace chooser didn't warn
about the potential overwrite after the user already saved a workspace,
despite that in such case it would perform overwrite.
This commit ensures the buttons are updated so they warn the user
properly.

BUG:444980
parent 4d9f94da
......@@ -158,6 +158,8 @@ void KisWorkspaceChooser::slotSaveWorkspace()
}
m_view->canvasResourceProvider()->notifySavingWorkspace(workspace);
slotUpdateWorkspaceSaveButton();
}
void KisWorkspaceChooser::slotUpdateWorkspaceSaveButton()
......@@ -217,6 +219,8 @@ void KisWorkspaceChooser::slotSaveWindowLayout()
layout->setName(name);
layout->setFilename(name.split(" ").join("_") + layout->defaultFileExtension());
KisResourceUserOperations::addResourceWithUserInput(this, layout);
slotUpdateWindowLayoutSaveButton();
}
void KisWorkspaceChooser::slotUpdateWindowLayoutSaveButton()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment