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

Method updateSite

src/app/script/api/app_script.cpp:219–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217 }
218
219 bool updateSite() {
220 app::Document* doc = UIContext::instance()->activeDocument();
221 app::DocumentView* m_view = UIContext::instance()->getFirstDocumentView(doc);
222 if (!m_view)
223 return false;
224 m_view->getSite(&m_site);
225 return true;
226 }
227
228 script::Value open(const std::string& fn) {
229 if (fn.empty())

Callers

nothing calls this directly

Calls 4

instanceFunction · 0.85
getFirstDocumentViewMethod · 0.80
activeDocumentMethod · 0.45
getSiteMethod · 0.45

Tested by

no test coverage detected