This repository was archived by the owner on Dec 31, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 10 files changed +24
-14
lines changed Expand file tree Collapse file tree 10 files changed +24
-14
lines changed Original file line number Diff line number Diff line change @@ -63,17 +63,17 @@ jobs:
63
63
uses : TheDoctor0/zip-release@0.6.2
64
64
with :
65
65
type : zip
66
- filename : Eyes_Protection_Reminder_v4.1.1 .Windows.${{ matrix.architecture }}.zip
67
- path : ${{ github.workspace }}\build\source\Eyes_Protection_Reminder_v4.1.1 .Windows.${{ matrix.architecture }}.exe
66
+ filename : Eyes_Protection_Reminder_v4.1.2 .Windows.${{ matrix.architecture }}.zip
67
+ path : ${{ github.workspace }}\build\source\Eyes_Protection_Reminder_v4.1.2 .Windows.${{ matrix.architecture }}.exe
68
68
69
69
- name : Upload built executable file
70
70
uses : tanyagray/action-upload-release-asset@v1.1.3
71
71
env :
72
72
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
73
73
with :
74
74
upload_url : ${{ needs.update_release_draft.outputs.upload_url }}
75
- asset_path : ${{ github.workspace }}\Eyes_Protection_Reminder_v4.1.1 .Windows.${{ matrix.architecture }}.zip
76
- asset_name : Eyes_Protection_Reminder_v4.1.1 .Windows.${{ matrix.architecture }}.zip
75
+ asset_path : ${{ github.workspace }}\Eyes_Protection_Reminder_v4.1.2 .Windows.${{ matrix.architecture }}.zip
76
+ asset_name : Eyes_Protection_Reminder_v4.1.2 .Windows.${{ matrix.architecture }}.zip
77
77
asset_content_type : application/zip
78
78
79
79
publish_release :
Original file line number Diff line number Diff line change 1
1
cmake_minimum_required (VERSION 3.10.2 )
2
2
3
- project (Eyes_Protection_Reminder VERSION 4.1.1 )
3
+ project (Eyes_Protection_Reminder VERSION 4.1.2 )
4
4
5
5
add_subdirectory (libs/wxWidgets )
6
6
add_subdirectory (source )
Original file line number Diff line number Diff line change 6
6
![ Languages] ( https://img.shields.io/github/languages/top/hardingadonis/Eyes_Protection_Reminder?style=flat )
7
7
![ Repo Size] ( https://img.shields.io/github/repo-size/hardingadonis/Eyes_Protection_Reminder?style=flat )
8
8
![ License] ( https://img.shields.io/github/license/hardingadonis/Eyes_Protection_Reminder?style=flat )
9
- [ ![ Download] ( https://img.shields.io/github/downloads/hardingadonis/Eyes_Protection_Reminder/v4.1.1 /total?style=flat )] ( https://github.com/hardingadonis/Eyes_Protection_Reminder/releases/tag/v4.1.1 )
9
+ [ ![ Download] ( https://img.shields.io/github/downloads/hardingadonis/Eyes_Protection_Reminder/v4.1.2 /total?style=flat )] ( https://github.com/hardingadonis/Eyes_Protection_Reminder/releases/tag/v4.1.2 )
10
10
11
11
![ EPR_banner] ( https://github.com/hardingadonis/Eyes_Protection_Reminder/blob/main/imgs/EPR_banner.png )
12
12
@@ -60,10 +60,10 @@ cmake --build . --target EPR
60
60
```
61
61
62
62
- Run project
63
- - Find an application that named ` Eyes_Protection_Reminder_v4.1.1 .Windows.x86.exe ` or ` Eyes_Protection_Reminder_v4.1.1 .Windows.x64.exe `
63
+ - Find an application that named ` Eyes_Protection_Reminder_v4.1.2 .Windows.x86.exe ` or ` Eyes_Protection_Reminder_v4.1.2 .Windows.x64.exe `
64
64
- Now, run it!!!
65
65
66
- - Or, you can download the binary in [ here] ( https://github.com/hardingadonis/Eyes_Protection_Reminder/releases/tag/v4.1.1 )
66
+ - Or, you can download the binary in [ here] ( https://github.com/hardingadonis/Eyes_Protection_Reminder/releases/tag/v4.1.2 )
67
67
68
68
## Usage
69
69
Original file line number Diff line number Diff line change 13
13
14
14
### Download Eyes Protection Reminder
15
15
16
- You can download the binary in [ here] ( https://github.com/hardingadonis/Eyes_Protection_Reminder/releases/tag/v4.1.1 ) .
16
+ You can download the binary in [ here] ( https://github.com/hardingadonis/Eyes_Protection_Reminder/releases/tag/v4.1.2 ) .
17
17
18
18
Choose one of two:
19
19
Original file line number Diff line number Diff line change 13
13
14
14
### Tải Eyes Protection Reminder
15
15
16
- Bạn có thể tải ** Eyes Protection Reminder** [ tại đây] ( https://github.com/hardingadonis/Eyes_Protection_Reminder/releases/tag/v4.1.1 ) .
16
+ Bạn có thể tải ** Eyes Protection Reminder** [ tại đây] ( https://github.com/hardingadonis/Eyes_Protection_Reminder/releases/tag/v4.1.2 ) .
17
17
18
18
Chọn một trong hai:
19
19
Original file line number Diff line number Diff line change 1
1
cmake_minimum_required (VERSION 3.10.2 )
2
2
3
- project (EPR VERSION 4.1.1 )
3
+ project (EPR VERSION 4.1.2 )
4
4
set (CMAKE_CXX_STANDARD 17 )
5
5
set (CMAKE_CXX_STANDARD_REQUIRED ON )
6
6
@@ -34,4 +34,4 @@ set(EPR_ICON ${CMAKE_SOURCE_DIR}/assets/EPR_icon.rc)
34
34
add_executable (${PROJECT_NAME} WIN32 ${EPR_SOURCES} ${EPR_ICON} )
35
35
target_link_libraries (${PROJECT_NAME} PUBLIC wx::core wx::base )
36
36
target_include_directories (${PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} /include )
37
- set_target_properties (${PROJECT_NAME} PROPERTIES OUTPUT_NAME Eyes_Protection_Reminder_v4.1.1 .Windows.${EPR_ARCH} )
37
+ set_target_properties (${PROJECT_NAME} PROPERTIES OUTPUT_NAME Eyes_Protection_Reminder_v4.1.2 .Windows.${EPR_ARCH} )
Original file line number Diff line number Diff line change @@ -40,6 +40,8 @@ namespace EPR
40
40
void OnMenuSource (wxCommandEvent& _event);
41
41
void OnMenuExit (wxCommandEvent& _event);
42
42
43
+ void OnLeftButtonDClick (wxTaskBarIconEvent& _event);
44
+
43
45
protected:
44
46
wxMenu* CreatePopupMenu () override ;
45
47
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ namespace EPR
63
63
SetAppName (" Eyes Protection Reminder" );
64
64
65
65
// Create the main frame
66
- m_mainFrame = new MainFrame (" Eyes Protection Reminder - v4.1.1 " , wxSize (500 , 350 ));
66
+ m_mainFrame = new MainFrame (" Eyes Protection Reminder - v4.1.2 " , wxSize (500 , 350 ));
67
67
68
68
if (m_mainFrame == nullptr )
69
69
{
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ namespace EPR
100
100
101
101
// Set the information for about dialog
102
102
_aboutInfo.SetName (wxTheApp->GetAppName ());
103
- _aboutInfo.SetVersion (" - v4.1.1 " );
103
+ _aboutInfo.SetVersion (" - v4.1.2 " );
104
104
_aboutInfo.SetIcon (s_EPR_icon_64);
105
105
_aboutInfo.SetCopyright (" Copyright (c) 2022 " + wxString::FromUTF8 (" Minh Vương." ) + " \n All rights reserved." );
106
106
_aboutInfo.SetDescription (" A small tool to remind you to\n protect your eyes with the 20:20:20 rule." );
Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ namespace EPR
39
39
EVT_MENU (EPR_Menu_Restore, TaskBarIcon::OnMenuRestore)
40
40
EVT_MENU (EPR_Menu_Source, TaskBarIcon::OnMenuSource)
41
41
EVT_MENU (EPR_Menu_Exit, TaskBarIcon::OnMenuExit)
42
+ EVT_TASKBAR_LEFT_DCLICK (TaskBarIcon::OnLeftButtonDClick)
42
43
wxEND_EVENT_TABLE ()
43
44
44
45
TaskBarIcon::TaskBarIcon (wxWindow* _parent, wxTaskBarIconType _iconType) :
@@ -68,6 +69,13 @@ namespace EPR
68
69
_event.Skip ();
69
70
}
70
71
72
+ void TaskBarIcon::OnLeftButtonDClick (wxTaskBarIconEvent& _event)
73
+ {
74
+ m_parent->Show ();
75
+
76
+ _event.Skip ();
77
+ }
78
+
71
79
wxMenu* TaskBarIcon::CreatePopupMenu ()
72
80
{
73
81
wxMenu* _menu = new wxMenu ();
You can’t perform that action at this time.
0 commit comments