MCPcopy Create free account
hub / github.com/Nitrux/maui-shell / addRecentApp

Method addRecentApp

casklib/src/code/controllers/appsdb.cpp:32–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32void AppsDB::addRecentApp(const QString &desktopFile)
33{
34 if(m_db->insert("RECENT_APPS", {{"name", desktopFile}, {"adddate", QDateTime::currentDateTime().toString()}, {"count", 0}}))
35 {
36 m_recentApps->insert(desktopFile, 0);
37 }else
38 {
39 countUpApp(desktopFile);
40 }
41}
42
43void AppsDB::launchApp(const QString &desktopFile)
44{

Callers 1

launchAppMethod · 0.95

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected