The term "Debug Window" is not accurate IMO and we should consider renaming it to a more user-friendly term (only visible in the window title as well as from the tray menu).
#endif 
        unitDisplayControl->setOptionsModel(_clientModel->getOptionsModel());
        OptionsModel* optionsModel = _clientModel->getOptionsModel();
        if (optionsModel && trayIcon) {
            
            connect(optionsModel, &OptionsModel::hideTrayIconChanged, this, &BitcoinGUI::setTrayIconVisible);
            
            setTrayIconVisible(optionsModel->getHideTrayIcon());
        }
    } else {
        
        toggleHideAction->setEnabled(false);
        if(trayIconMenu)
        {
            
            trayIconMenu->clear();
        }
        
        rpcConsole->setClientModel(nullptr);
#ifdef ENABLE_WALLET
        if (walletFrame)
        {
            walletFrame->setClientModel(nullptr);
        }
#endif 
        unitDisplayControl->setOptionsModel(nullptr);
    }
}
#ifdef ENABLE_WALLET
void BitcoinGUI::setWalletController(WalletController* wallet_controller)