()
| 258 | } |
| 259 | |
| 260 | private void showReloadDialog() { |
| 261 | reloadDialogVisible = true; |
| 262 | int result = JOptionPane.showOptionDialog(JdotxtGUI.this, lang.getWord("Text_modified"), lang.getWord("Reload"), JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE, null, null, null); |
| 263 | reloadDialogVisible = false; |
| 264 | unresolvedFileModification = false; |
| 265 | if (result == 0) reloadTasks(); |
| 266 | else { |
| 267 | taskBag.update(null); // Fake a change so that a save really leads to a save |
| 268 | toolbar.getButtonSave().setEnabled(true); |
| 269 | if (Jdotxt.userPrefs.getBoolean("autosave", false)) { |
| 270 | saveTasks(true); |
| 271 | System.out.println("Save update"); |
| 272 | } |
| 273 | } |
| 274 | } |
| 275 | |
| 276 | // Sets the status bar to the default text "open and total tasks" |
| 277 | public void setDefaultStatusText() { |
no test coverage detected