| 457 | } |
| 458 | |
| 459 | bool AdaptixWidget::AddExtension(ExtensionFile* ext) |
| 460 | { |
| 461 | if (ScriptManager->ScriptList().contains(ext->FilePath)) { |
| 462 | ext->Enabled = false; |
| 463 | ext->Message = "Script already loaded"; |
| 464 | return false; |
| 465 | } |
| 466 | |
| 467 | if( !synchronized ) { |
| 468 | ext->Enabled = false; |
| 469 | ext->Message = "C2 not synchronized"; |
| 470 | return false; |
| 471 | } |
| 472 | |
| 473 | return ScriptManager->ScriptAdd(ext); |
| 474 | } |
| 475 | |
| 476 | void AdaptixWidget::RemoveExtension(const ExtensionFile &ext) |
| 477 | { |
no test coverage detected