| 667 | customButtons: [updateAllButton], | 669 | customButtons: [updateAllButton], |
| 668 | allowVerticalScrolling: true, | 670 | allowVerticalScrolling: true, |
| 669 | onClosing: async () => { | 671 | onClosing: async () => { |
| | 672 | if (waitingForSave) { |
| | 673 | return false; |
| | 674 | } |
| 670 | if (stateChanged) { | 675 | if (stateChanged) { |
| 671 | toastr.info('The page will be reloaded shortly...', 'Extensions state changed'); | 676 | waitingForSave = true; |
| | 677 | const toast = toastr.info('The page will be reloaded shortly...', 'Extensions state changed'); |
| 672 | await saveSettings(); | 678 | await saveSettings(); |
| | 679 | toastr.clear(toast); |
| 673 | } | 680 | } |
| 674 | return true; | 681 | return true; |
| 675 | }, | 682 | }, |