save the right number of workspaces to the rc when adding/removing one
This commit is contained in:
parent
77cf8a6f8a
commit
4787715525
1 changed files with 2 additions and 2 deletions
|
@ -960,7 +960,7 @@ BlackboxWindow *BScreen::getIcon(unsigned int index) {
|
|||
unsigned int BScreen::addWorkspace(void) {
|
||||
Workspace *wkspc = new Workspace(this, workspacesList.size());
|
||||
workspacesList.push_back(wkspc);
|
||||
saveWorkspaces(getWorkspaceCount() + 1);
|
||||
saveWorkspaces(getWorkspaceCount());
|
||||
saveWorkspaceNames();
|
||||
|
||||
workspacemenu->insert(wkspc->getName(), wkspc->getMenu(),
|
||||
|
@ -992,7 +992,7 @@ unsigned int BScreen::removeLastWorkspace(void) {
|
|||
workspacesList.pop_back();
|
||||
delete wkspc;
|
||||
|
||||
saveWorkspaces(getWorkspaceCount() - 1);
|
||||
saveWorkspaces(getWorkspaceCount());
|
||||
saveWorkspaceNames();
|
||||
|
||||
toolbar->reconfigure();
|
||||
|
|
Loading…
Reference in a new issue