()
| 37 | } |
| 38 | |
| 39 | static #load() { |
| 40 | let result = {}; |
| 41 | |
| 42 | try { |
| 43 | if (File.exists(Preference.#filePath)) { |
| 44 | let file = new File(Preference.#filePath, false); |
| 45 | result = JSON.parse(file.read(String)); |
| 46 | file.close(); |
| 47 | } |
| 48 | } catch { |
| 49 | // ignore errors |
| 50 | } |
| 51 | |
| 52 | return result; |
| 53 | } |
| 54 | |
| 55 | static #save() { |
| 56 | try { |
no test coverage detected