MCPcopy Create free account
hub / github.com/ElyPrismLauncher/Launcher / registerShortcut

Method registerShortcut

launcher/BaseInstance.cpp:407–413  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

405}
406
407void BaseInstance::registerShortcut(const ShortcutData& data)
408{
409 auto currentShortcuts = shortcuts();
410 currentShortcuts.append(data);
411 qDebug() << "Registering shortcut for instance" << id() << "with name" << data.name << "and path" << data.filePath;
412 setShortcuts(currentShortcuts);
413}
414
415void BaseInstance::setShortcuts(const QList<ShortcutData>& shortcuts)
416{

Callers 1

createInstanceShortcutFunction · 0.80

Calls 2

appendMethod · 0.80
idFunction · 0.50

Tested by

no test coverage detected