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:
2019-04-06 23:35:34 +02:00
parent 86f0798f63
commit 057d458f96
2 changed files with 3 additions and 2 deletions

View File

@@ -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)