mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 01:11:12 +02:00
osd_setup/menue.cpp: remove slot OnAfterChangeOption from OsdSetup class
Effect was right only for the osd_menu widget but not for all the other opened menu widget instances. This was watched if user the osd setup menu has lefted with the 'Setup' ('Menu') button. The main menu was not touched. Thx GetAway for hint. The use of slot in context with the OsdHelpers class should solve this issue for all new generated menu widget instances.
This commit is contained in:
@@ -707,7 +707,6 @@ int COsdSetup::showOsdSetup()
|
||||
(g_settings.video_Mode != VIDEO_STD_AUTO));
|
||||
CMenuOptionChooser * osd_res = new CMenuOptionChooser(LOCALE_COLORMENU_OSD_RESOLUTION, &g_settings.osd_resolution, kext, resCount, enable, this);
|
||||
osd_res->OnAfterChangeOption.connect(sigc::mem_fun(frameBuffer->getInstance(), &CFrameBuffer::clearIconCache));
|
||||
osd_res->OnAfterChangeOption.connect(sigc::mem_fun(osd_menu, &CMenuWidget::ResetModules));
|
||||
osd_res->setHint("", LOCALE_MENU_HINT_OSD_RESOLUTION);
|
||||
osd_menu->addItem(osd_res);
|
||||
#endif
|
||||
|
@@ -38,7 +38,7 @@
|
||||
#include <gui/pluginlist.h>
|
||||
#include <gui/widget/stringinput.h>
|
||||
#include <gui/infoclock.h>
|
||||
|
||||
#include <gui/osd_helpers.h>
|
||||
|
||||
#include <driver/fade.h>
|
||||
#include <driver/display.h>
|
||||
@@ -704,6 +704,8 @@ void CMenuWidget::Init(const std::string &NameString, const std::string &Icon, c
|
||||
if(min_width > (int) frameBuffer->getScreenWidth())
|
||||
min_width = frameBuffer->getScreenWidth();
|
||||
}
|
||||
|
||||
COsdHelpers::getInstance()->OnAfterChangeResolution.connect(sigc::mem_fun(this, &CMenuWidget::ResetModules));
|
||||
}
|
||||
|
||||
void CMenuWidget::move(int xoff, int yoff)
|
||||
|
Reference in New Issue
Block a user