MCPcopy Create free account
hub / github.com/MultiMC/Launcher / profileInUseFilter

Function profileInUseFilter

launcher/ui/MainWindow.cpp:97–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95
96namespace {
97QString profileInUseFilter(const QString & profile, bool used)
98{
99 if(used)
100 {
101 return QObject::tr("%1 (in use)").arg(profile);
102 }
103 else
104 {
105 return profile;
106 }
107}
108}
109
110// WHY: to hold the pre-translation strings together with the T pointer, so it can be retranslated without a lot of ugly code

Callers 3

retranslateUiMethod · 0.85
defaultAccountChangedMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected