| 536 | } |
| 537 | |
| 538 | void Shell::writeSettings() |
| 539 | { |
| 540 | saveRecents(); |
| 541 | |
| 542 | KConfigGroup sidebarGroup = KSharedConfig::openConfig()->group(GeneralGroupKey()); |
| 543 | sidebarGroup.writeEntry(SIDEBAR_LOCKED_KEY, m_sidebar->isLocked()); |
| 544 | // NOTE : Consider whether the m_showSidebarAction is checked, because |
| 545 | // the sidebar can be forcibly hidden if the welcome screen is displayed |
| 546 | sidebarGroup.writeEntry(SIDEBAR_VISIBLE_KEY, m_sidebar->isVisibleTo(this) || m_showSidebarAction->isChecked()); |
| 547 | |
| 548 | KConfigGroup group = KSharedConfig::openConfig()->group(DesktopEntryGroupKey()); |
| 549 | group.writeEntry("FullScreen", m_fullScreenAction->isChecked()); |
| 550 | if (m_fullScreenAction->isChecked()) { |
| 551 | group.writeEntry(shouldShowMenuBarComingFromFullScreen, m_menuBarWasShown); |
| 552 | group.writeEntry(shouldShowToolBarComingFromFullScreen, m_toolBarWasShown); |
| 553 | } |
| 554 | KSharedConfig::openConfig()->sync(); |
| 555 | } |
| 556 | |
| 557 | void Shell::saveRecents() |
| 558 | { |
nothing calls this directly
no test coverage detected