340 const auto saveSettings = [&]{ |
340 const auto saveSettings = [&]{ |
341 setSetting<Setting::MainWindowGeometry>(mainWindow.saveGeometry()); |
341 setSetting<Setting::MainWindowGeometry>(mainWindow.saveGeometry()); |
342 setSetting<Setting::RecentFiles>(recentlyOpenedFiles); |
342 setSetting<Setting::RecentFiles>(recentlyOpenedFiles); |
343 setSetting<Setting::RenderStyle>(renderPreferences.style); |
343 setSetting<Setting::RenderStyle>(renderPreferences.style); |
344 setSetting<Setting::DrawAxes>(renderPreferences.drawAxes); |
344 setSetting<Setting::DrawAxes>(renderPreferences.drawAxes); |
345 setSetting<Setting::DrawAxes>("hello world"); |
|
346 libraries.storeToSettings(); |
345 libraries.storeToSettings(); |
347 }; |
346 }; |
348 const auto updateRecentlyOpenedDocumentsMenu = [&]{ |
347 const auto updateRecentlyOpenedDocumentsMenu = [&]{ |
349 rebuildRecentFilesMenu(ui.menuRecentFiles, recentlyOpenedFiles, &mainWindow); |
348 rebuildRecentFilesMenu(ui.menuRecentFiles, recentlyOpenedFiles, &mainWindow); |
350 for (QAction* action : ui.menuRecentFiles->findChildren<QAction*>()) { |
349 for (QAction* action : ui.menuRecentFiles->findChildren<QAction*>()) { |