public void OnClosed(bool saveSettings, IAppRefreshSettings appRefreshSettings) { if (!saveSettings) { return; } displayAppSettingsVM.OnBeforeSave(appRefreshSettings); displayAppSettingsVM.TextEditorSettings.CopyTo(textEditorSettingsImpl, editorOptions); displayAppSettingsVM.FileTreeViewSettings.CopyTo(fileTreeViewSettings); displayAppSettingsVM.FileTabManagerSettings.CopyTo(fileTabManagerSettings); }