MCPcopy Create free account
hub / github.com/TypesettingTools/Aegisub / Validate

Function Validate

src/command/edit.cpp:889–896  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

887 CMD_TYPE(COMMAND_VALIDATE)
888
889 bool Validate(const agi::Context *c) override {
890 bool can_paste = !c->selectionController->GetSelectedSet().empty();
891 if (can_paste && wxTheClipboard->Open()) {
892 can_paste = wxTheClipboard->IsSupported(wxDF_TEXT) || wxTheClipboard->IsSupported(wxDF_UNICODETEXT);
893 wxTheClipboard->Close();
894 }
895 return can_paste;
896 }
897
898 void operator()(agi::Context *c) override {
899 auto const& sel = c->selectionController->GetSelectedSet();

Callers

nothing calls this directly

Calls 2

OpenMethod · 0.45
CloseMethod · 0.45

Tested by

no test coverage detected