Open the Edit/Preferences dialog box.
| 2940 | //* Open the Edit/Preferences dialog box. |
| 2941 | //***************************************************** |
| 2942 | void 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 |
nothing calls this directly
no test coverage detected