mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-26 15:02:50 +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.
Origin commit data
------------------
Branch: ni/coolstream
Commit: 538085ca6d
Author: Thilo Graf <dbt@novatux.de>
Date: 2019-04-07 (Sun, 07 Apr 2019)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -709,7 +709,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>
|
||||
@@ -702,6 +702,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