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

Method onExecute

src/app/commands/cmd_close_file.cpp:49–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47 }
48
49 void onExecute(Context* context) override {
50 Workspace* workspace = App::instance()->workspace();
51 WorkspaceView* view = workspace->activeView();
52 if (view)
53 workspace->closeView(view, false);
54 }
55};
56
57class CloseAllFilesCommand : public Command {

Callers

nothing calls this directly

Calls 4

instanceFunction · 0.85
workspaceMethod · 0.80
closeViewMethod · 0.80
activeViewMethod · 0.45

Tested by

no test coverage detected