@@ -76,7 +76,8 @@ BitcoinGUI::BitcoinGUI(interfaces::Node& node, const PlatformStyle *_platformSty
76
76
QMainWindow(parent),
77
77
m_node(node),
78
78
trayIconMenu{new QMenu ()},
79
- platformStyle (_platformStyle)
79
+ platformStyle (_platformStyle),
80
+ m_network_style(networkStyle)
80
81
{
81
82
QSettings settings;
82
83
if (!restoreGeometry (settings.value (" MainWindowGeometry" ).toByteArray ())) {
@@ -94,9 +95,9 @@ BitcoinGUI::BitcoinGUI(interfaces::Node& node, const PlatformStyle *_platformSty
94
95
} else {
95
96
windowTitle += tr (" Node" );
96
97
}
97
- windowTitle += " " + networkStyle ->getTitleAddText ();
98
- QApplication::setWindowIcon (networkStyle ->getTrayAndWindowIcon ());
99
- setWindowIcon (networkStyle ->getTrayAndWindowIcon ());
98
+ windowTitle += " " + m_network_style ->getTitleAddText ();
99
+ QApplication::setWindowIcon (m_network_style ->getTrayAndWindowIcon ());
100
+ setWindowIcon (m_network_style ->getTrayAndWindowIcon ());
100
101
setWindowTitle (windowTitle);
101
102
102
103
rpcConsole = new RPCConsole (node, _platformStyle, nullptr );
@@ -132,7 +133,7 @@ BitcoinGUI::BitcoinGUI(interfaces::Node& node, const PlatformStyle *_platformSty
132
133
133
134
// Create system tray icon and notification
134
135
if (QSystemTrayIcon::isSystemTrayAvailable ()) {
135
- createTrayIcon (networkStyle );
136
+ createTrayIcon ();
136
137
}
137
138
notificator = new Notificator (QApplication::applicationName (), trayIcon, this );
138
139
@@ -639,14 +640,14 @@ void BitcoinGUI::setWalletActionsEnabled(bool enabled)
639
640
openAction->setEnabled (enabled);
640
641
}
641
642
642
- void BitcoinGUI::createTrayIcon (const NetworkStyle *networkStyle )
643
+ void BitcoinGUI::createTrayIcon ()
643
644
{
644
645
assert (QSystemTrayIcon::isSystemTrayAvailable ());
645
646
646
647
#ifndef Q_OS_MAC
647
648
if (QSystemTrayIcon::isSystemTrayAvailable ()) {
648
- trayIcon = new QSystemTrayIcon (networkStyle ->getTrayAndWindowIcon (), this );
649
- QString toolTip = tr (" %1 client" ).arg (tr (PACKAGE_NAME)) + " " + networkStyle ->getTitleAddText ();
649
+ trayIcon = new QSystemTrayIcon (m_network_style ->getTrayAndWindowIcon (), this );
650
+ QString toolTip = tr (" %1 client" ).arg (tr (PACKAGE_NAME)) + " " + m_network_style ->getTitleAddText ();
650
651
trayIcon->setToolTip (toolTip);
651
652
}
652
653
#endif
0 commit comments