gui/hdd_menu.cpp: convert to singleton;

add basic notify about device hotplug/remove
This commit is contained in:
[CST] Focus
2014-04-23 17:25:08 +04:00
parent bc5b5dd7f3
commit 6be2b32cd3
4 changed files with 66 additions and 8 deletions

View File

@@ -421,7 +421,7 @@ void CNeutrinoApp::InitMenuSettings()
// drive settings
if (g_settings.recording_type != CNeutrinoApp::RECORDING_OFF) {
mf = new CMenuForwarder(LOCALE_HDD_SETTINGS, true, NULL, new CHDDMenuHandler());
mf = new CMenuForwarder(LOCALE_HDD_SETTINGS, true, NULL, CHDDMenuHandler::getInstance());
mf->setHint(NEUTRINO_ICON_HINT_HDD, LOCALE_MENU_HINT_HDD);
personalize.addItem(MENU_SETTINGS, mf, &g_settings.personalize[SNeutrinoSettings::P_MSET_DRIVES]);
}