(path)
| 412 | } |
| 413 | } |
| 414 | doOpenProfile(path) { |
| 415 | let profile; |
| 416 | try { |
| 417 | profile = new Profile(null, path); |
| 418 | this.profiles.push(profile); |
| 419 | this.profiles.sort((a, b) => a.name.localeCompare(b.name)); |
| 420 | application.distribute("onProfilesChanged"); |
| 421 | } |
| 422 | catch(e) { |
| 423 | } |
| 424 | return profile; |
| 425 | } |
| 426 | doCloseDirectory(path) { |
| 427 | let items = this.homes.items; |
| 428 | let index = items.findIndex(item => item.path == path); |
no test coverage detected