| 283 | } |
| 284 | |
| 285 | bool SpectralDataDialog::Show( bool show ) |
| 286 | { |
| 287 | if ( show && !IsShown()) |
| 288 | DoUpdate(); |
| 289 | if ( IsShown() && !show && IsBrushToolActive(mProject) ) |
| 290 | ProjectSettings::Get(mProject).SetTool(ToolCodes::selectTool); |
| 291 | auto result = wxDialogWrapper::Show( show ); |
| 292 | CommandManager::Get( mProject ).UpdateCheckmarks( mProject ); |
| 293 | return result; |
| 294 | } |
| 295 | |
| 296 | void SpectralDataDialog::DoUpdate() |
| 297 | { |
no test coverage detected