MCPcopy Create free account
hub / github.com/LibreSprite/LibreSprite / onEnabled

Method onEnabled

src/app/commands/cmd_close_file.cpp:43–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41protected:
42
43 bool onEnabled(Context* context) override {
44 Workspace* workspace = App::instance()->workspace();
45 WorkspaceView* view = workspace->activeView();
46 return (view != nullptr);
47 }
48
49 void onExecute(Context* context) override {
50 Workspace* workspace = App::instance()->workspace();

Callers

nothing calls this directly

Calls 3

instanceFunction · 0.85
workspaceMethod · 0.80
activeViewMethod · 0.45

Tested by

no test coverage detected