Skip to content

Commit 0e08a65

Browse files
author
Ravbug
committed
Automatically set correct copyright year
1 parent 21cf9aa commit 0e08a65

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

source/interface_derived.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -221,12 +221,14 @@ void MainFrameDerived::Filter(wxKeyEvent &){
221221
LoadProjects(filter);
222222
}
223223

224+
#define BUILD_YEAR (__DATE__ + 7)
225+
224226
//definitions for the events
225227
void MainFrameDerived::OnAbout(wxCommandEvent& event)
226228
{
227229
wxAboutDialogInfo aboutInfo;
228230
aboutInfo.SetName("Unity Hub Native");
229-
aboutInfo.SetCopyright("(C) Ravbug 2023");
231+
aboutInfo.SetCopyright(fmt::format("(C) Ravbug {}",BUILD_YEAR));
230232
aboutInfo.SetDescription("Developed with wxWidgets in C++");
231233
#if defined __linux__
232234
aboutInfo.SetWebSite("https://github.com/ravbug/UnityHubNative");

0 commit comments

Comments
 (0)