MCPcopy Create free account
hub / github.com/KDE/okular / writeSettings

Method writeSettings

shell/shell.cpp:538–555  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

536}
537
538void 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
557void Shell::saveRecents()
558{

Callers

nothing calls this directly

Calls 2

GeneralGroupKeyFunction · 0.85
DesktopEntryGroupKeyFunction · 0.85

Tested by

no test coverage detected