MCPcopy Create free account
hub / github.com/baumgarr/nixnote2 / openPreferences

Method openPreferences

nixnote.cpp:2942–2965  ·  view source on GitHub ↗

Open the Edit/Preferences dialog box.

Source from the content-addressed store, hash-verified

2940//* Open the Edit/Preferences dialog box.
2941//*****************************************************
2942void NixNote::openPreferences() {
2943 PreferencesDialog prefs;
2944 prefs.exec();
2945 if (prefs.okButtonPressed) {
2946 setSyncTimer();
2947 bool showTrayIcon = global.showTrayIcon();
2948 setWindowIcon(global.getIconResource(":windowIcon"));
2949 trayIcon->setIcon(global.getIconResource(":trayIcon"));
2950 if (!showTrayIcon) {
2951 //trayIconBehavior();
2952 if (!this->isVisible())
2953 this->show();
2954 trayIcon->setVisible(false);
2955
2956 } else {
2957 trayIcon->setVisible(true);
2958 minimizeToTray = global.minimizeToTray();
2959 closeToTray = global.closeToTray();
2960 //trayIconBehavior();
2961 }
2962 indexRunner.officeFound = global.synchronizeAttachments();
2963 }
2964 global.setDebugLevel();
2965}
2966
2967
2968

Callers

nothing calls this directly

Calls 8

showTrayIconMethod · 0.80
getIconResourceMethod · 0.80
showMethod · 0.80
minimizeToTrayMethod · 0.80
closeToTrayMethod · 0.80
setDebugLevelMethod · 0.80
execMethod · 0.45

Tested by

no test coverage detected