fix(ui): Superfluous and invalid attribute initialisation (#2747)
* fix(ui): fixed a memopry leak and a waring in topbar.cpp * fix: Restore ScreenMenu on exit of topbar widget setup
This commit is contained in:
@@ -35,8 +35,7 @@ Topbar * TopbarFactory::create(Window * parent)
|
||||
}
|
||||
|
||||
SetupTopBarWidgetsPage::SetupTopBarWidgetsPage():
|
||||
FormWindow(ViewMain::instance(), rect_t{}, FORM_FORWARD_FOCUS),
|
||||
menu(menu)
|
||||
FormWindow(ViewMain::instance(), rect_t{}, FORM_FORWARD_FOCUS)
|
||||
{
|
||||
// remember focus
|
||||
Layer::push(this);
|
||||
|
||||
@@ -54,7 +54,4 @@ class SetupTopBarWidgetsPage : public FormWindow
|
||||
void onClicked() override;
|
||||
void onCancel() override;
|
||||
void deleteLater(bool detach = true, bool trash = true) override;
|
||||
|
||||
protected:
|
||||
ScreenMenu* menu;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user