MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / profileInUseFilter

Function profileInUseFilter

launcher/ui/MainWindow.cpp:148–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146
147namespace {
148QString profileInUseFilter(const QString & profile, bool used)
149{
150 if(used)
151 {
152 return QObject::tr("%1 (in use)").arg(profile);
153 }
154 else
155 {
156 return profile;
157 }
158}
159}
160
161// 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