Skip to content

Commit

Permalink
Merge pull request #1324 from KeyWorksRW/wxue_functions
Browse files Browse the repository at this point in the history
Change when to generate wxue function declaration/definition
  • Loading branch information
Randalphwa authored Dec 2, 2023
2 parents 804a357 + 6640795 commit f68d4b5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/generate/gen_cpp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ void BaseCodeGenerator::GenerateCppClass(PANEL_PAGE panel_type)

if (m_NeedImageFunction || m_NeedHeaderFunction)
{
if (Project.getForm_Image() == m_form_node && !has_images_list_header)
if (!has_images_list_header)
{
tt_string_vector function;
function.ReadString(Project.getForm_Image() == m_form_node ? txt_wxueImageFunction :
Expand All @@ -637,7 +637,7 @@ void BaseCodeGenerator::GenerateCppClass(PANEL_PAGE panel_type)
m_source->writeLine("#endif", indent::none);
}

if (Project.getForm_BundleSVG() == m_form_node && !has_images_list_header)
if (!has_images_list_header)
{
tt_string_vector function;
function.ReadString(Project.getForm_BundleSVG() == m_form_node ? txt_GetBundleFromSVG :
Expand All @@ -652,7 +652,7 @@ void BaseCodeGenerator::GenerateCppClass(PANEL_PAGE panel_type)

if (m_NeedAnimationFunction)
{
if (Project.getForm_Animation() == m_form_node && !has_images_list_header)
if (!has_images_list_header)
{
tt_string_vector function;
function.ReadString(Project.getForm_Animation() == m_form_node ? txt_GetAnimFromHdrFunction :
Expand Down
4 changes: 2 additions & 2 deletions src/ui/startup_dlg.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ class StartupDlg : public wxDialog
// Code below this comment block will be preserved
// if the code for this class is re-generated.
//
// clang-format on
// ***********************************************
// clang-format on
// ***********************************************

public:
enum : size_t
Expand Down

0 comments on commit f68d4b5

Please # to comment.