Skip to content

Commit

Permalink
Automatically set correct copyright year
Browse files Browse the repository at this point in the history
  • Loading branch information
Ravbug committed Jul 4, 2024
1 parent 21cf9aa commit 0e08a65
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/interface_derived.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -221,12 +221,14 @@ void MainFrameDerived::Filter(wxKeyEvent &){
LoadProjects(filter);
}

#define BUILD_YEAR (__DATE__ + 7)

//definitions for the events
void MainFrameDerived::OnAbout(wxCommandEvent& event)
{
wxAboutDialogInfo aboutInfo;
aboutInfo.SetName("Unity Hub Native");
aboutInfo.SetCopyright("(C) Ravbug 2023");
aboutInfo.SetCopyright(fmt::format("(C) Ravbug {}",BUILD_YEAR));
aboutInfo.SetDescription("Developed with wxWidgets in C++");
#if defined __linux__
aboutInfo.SetWebSite("https://github.com/ravbug/UnityHubNative");
Expand Down

0 comments on commit 0e08a65

Please sign in to comment.