adding/removing workspaces wasn't updating menu
This commit is contained in:
parent
da545ea02e
commit
ecead0f5ed
3 changed files with 5 additions and 1 deletions
|
@ -1,6 +1,8 @@
|
|||
(Format: Year/Month/Day)
|
||||
Changes for 1.0.1:
|
||||
*07/10/23:
|
||||
* Adding/removing workspaces wasn't updating menu (Mark)
|
||||
Screen.cc
|
||||
* Support remembering maximized, minimized, and fullscreen state (Mark)
|
||||
- [Maximized] {yes|no|horz|vert}
|
||||
- [Minimized] {yes|no}
|
||||
|
|
|
@ -1202,6 +1202,7 @@ int BScreen::addWorkspace() {
|
|||
addWorkspaceName(wkspc->name().c_str()); //update names
|
||||
|
||||
saveWorkspaces(m_workspaces_list.size());
|
||||
workspaceCountSig().notify();
|
||||
|
||||
return m_workspaces_list.size();
|
||||
|
||||
|
@ -1231,6 +1232,7 @@ int BScreen::removeLastWorkspace() {
|
|||
m_workspaces_list.pop_back();
|
||||
|
||||
saveWorkspaces(m_workspaces_list.size());
|
||||
workspaceCountSig().notify();
|
||||
// must be deleted after we send notify!!
|
||||
// so we dont get bad pointers somewhere
|
||||
// while processing the notify signal
|
||||
|
|
|
@ -95,7 +95,7 @@ void WorkspaceMenu::update(FbTk::Subject *subj) {
|
|||
wkspc->name().c_str(),
|
||||
&wkspc->menu());
|
||||
FbTk::RefCount<FbTk::Command> jump_cmd(new JumpToWorkspaceCmd(wkspc->workspaceID()));
|
||||
mb_menu->setCommand(2, jump_cmd);
|
||||
mb_menu->setCommand(3, jump_cmd);
|
||||
insert(mb_menu, workspace + IDX_AFTER_ICONS);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue