Skip to content

Commit e566d70

Browse files
committed
Set Default_Date to the coming June 7th
1 parent 38be6d7 commit e566d70

2 files changed

Lines changed: 9 additions & 5 deletions

File tree

res/fileinfo.rc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ IDI_ICON1 ICON "Icon/canlendar.ico"
77
#endif
88

99
VS_VERSION_INFO VERSIONINFO
10-
FILEVERSION 0,0,3,0
11-
PRODUCTVERSION 0,0,3,0
10+
FILEVERSION 0,0,4,0
11+
PRODUCTVERSION 0,0,4,0
1212
FILEFLAGSMASK 0x3fL
1313
#ifdef _DEBUG
1414
FILEFLAGS VS_FF_DEBUG
@@ -25,11 +25,11 @@ VS_VERSION_INFO VERSIONINFO
2525
BEGIN
2626
VALUE "CompanyName", "�鶯�������\0"
2727
VALUE "FileDescription", "�߿�����ʱ\0"
28-
VALUE "FileVersion", "0.0.3.0\0"
28+
VALUE "FileVersion", "0.0.4.0\0"
2929
VALUE "LegalCopyright", "�鶯������� The MIT License\0"
3030
VALUE "OriginalFilename", "CountDown.exe\0"
3131
VALUE "ProductName", "�߿�����ʱ\0"
32-
VALUE "ProductVersion", "0.0.3.0\0"
32+
VALUE "ProductVersion", "0.0.4.0\0"
3333
VALUE "InternalName", "CountDown.exe\0"
3434
END
3535
END

settings.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ const char * const Action_Pos = "action/pos";
1818
const char * const Action_Opacity = "action/opacity";
1919

2020
const char Default_Symbol = '%';
21-
const QDate Default_Date(QDate::currentDate().year(), 6, 7);
21+
const QDate Default_Date = []{
22+
QDate today = QDate::currentDate();
23+
QDate examDate = QDate(today.year(), 6, 7);
24+
return today.daysTo(examDate) < 0 ? examDate.addYears(1) : examDate;
25+
}();
2226
const double Default_Opacity = 0.75;
2327
}
2428

0 commit comments

Comments
 (0)