mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 04:52:59 +01:00
Merge pull request #761 from UdjinM6/fixStyling
Assign app name in NetworkStyle::NetworkStyle()
This commit is contained in:
commit
bfaa5b6970
@ -655,7 +655,7 @@ int main(int argc, char *argv[])
|
||||
QScopedPointer<const NetworkStyle> networkStyle(NetworkStyle::instantiate(QString::fromStdString(Params().NetworkIDString())));
|
||||
assert(!networkStyle.isNull());
|
||||
// Allow for separate UI settings for testnets
|
||||
QApplication::setApplicationName(networkStyle->getAppName());
|
||||
// QApplication::setApplicationName(networkStyle->getAppName()); // moved to NetworkStyle::NetworkStyle
|
||||
// Re-initialize translations after changing application name (language in network-specific settings can be different)
|
||||
initTranslations(qtTranslatorBase, qtTranslator, translatorBase, translator);
|
||||
|
||||
|
@ -62,6 +62,9 @@ NetworkStyle::NetworkStyle(const QString &appName, const int iconColorHueShift,
|
||||
appName(appName),
|
||||
titleAddText(qApp->translate("SplashScreen", titleAddText))
|
||||
{
|
||||
// Allow for separate UI settings for testnets
|
||||
QApplication::setApplicationName(appName);
|
||||
// Grab theme from settings
|
||||
QString theme = GUIUtil::getThemeName();
|
||||
// load pixmap
|
||||
QPixmap appIconPixmap(":/icons/bitcoin");
|
||||
|
Loading…
Reference in New Issue
Block a user