|
|
|
|
@ -38,7 +38,8 @@ void StatusBarIconsPlugin::init(InitState state, const QString &settingsPath) |
|
|
|
|
|
|
|
|
|
// Make sure icons are added also to already created windows
|
|
|
|
|
if (state == LateInitState) { |
|
|
|
|
foreach (BrowserWindow* window, mApp->windows()) { |
|
|
|
|
const auto windows = mApp->windows(); |
|
|
|
|
for (BrowserWindow* window : windows) { |
|
|
|
|
m_manager->mainWindowCreated(window); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
@ -48,7 +49,8 @@ void StatusBarIconsPlugin::unload() |
|
|
|
|
{ |
|
|
|
|
// Make sure icons are properly removed when unloading plugin (but not when closing app)
|
|
|
|
|
if (!mApp->isClosing()) { |
|
|
|
|
foreach (BrowserWindow* window, mApp->windows()) { |
|
|
|
|
const auto windows = mApp->windows(); |
|
|
|
|
for (BrowserWindow* window : windows) { |
|
|
|
|
m_manager->mainWindowDeleted(window); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|