private void settings() {
logger.log(logger.HIGH, "Entering NeverNote.settings");
saveNoteColumnPositions();
saveNoteIndexWidth();
showColumns();
ConfigDialog settings = new ConfigDialog(this);
String dateFormat = Global.getDateFormat();
String timeFormat = Global.getTimeFormat();
indexTime = 1000*Global.getIndexThreadSleepInterval();
indexTimer.start(indexTime); // reset indexing timer
settings.exec();
indexRunner.indexAttachmentsLocally = Global.indexAttachmentsLocally();
indexRunner.indexNoteBody = Global.indexNoteBody();
indexRunner.indexNoteTitle = Global.indexNoteTitle();
indexRunner.specialIndexCharacters = Global.getSpecialIndexCharacters();
indexRunner.indexImageRecognition = Global.indexImageRecognition();
if (Global.showTrayIcon() || Global.minimizeOnClose())
trayIcon.show();
else
trayIcon.hide();
showColumns();
if (menuBar.showEditorBar.isChecked())
showEditorButtons(browserWindow);
// Reset the save timer
if (Global.getAutoSaveInterval() > 0)
saveTimer.setInterval(1000*60*Global.getAutoSaveInterval());
else
saveTimer.stop();
// Set special reloads
if (settings.getDebugPage().reloadSharedNotebooksClicked()) {
conn.executeSql("Delete from LinkedNotebook");
conn.executeSql("delete from SharedNotebook");
conn.executeSql("Delete from Notebook where linked=true");
conn.executeSql("Insert into Sync (key, value) values ('FullLinkedNotebookSync', 'true')");
conn.executeSql("Insert into Sync (key, value) values ('FullSharedNotebookSync', 'true')");