Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix PCMan is preventing shutdown #29 #30

Merged
merged 2 commits into from
Mar 31, 2018
Merged

Conversation

craftwar
Copy link
Contributor

@craftwar craftwar commented Jan 2, 2018

經測試,加入WM_QUERYENDSESSION處理就有效了

Lite/MainFrm.cpp Outdated
@@ -79,6 +79,7 @@ BEGIN_MESSAGE_MAP(CMainFrame, CFrameWnd)
ON_WM_INITMENUPOPUP()
ON_WM_CLOSE()
ON_WM_ACTIVATE()
ON_WM_QUERYENDSESSION()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think TAB is better than 4 space here.. (follow origin coding style)

Lite/MainFrm.cpp Outdated
@@ -829,6 +830,11 @@ void CMainFrame::OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized)
#endif
}

BOOL CMainFrame::OnQueryEndSession()
{
return 1;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think TAB is better than 4 space here.. (follow origin coding style)

Lite/MainFrm.h Outdated
@@ -181,6 +181,7 @@ class CMainFrame : public CFrameWnd
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnClose();
afx_msg void OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized);
afx_msg BOOL OnQueryEndSession();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think TAB is better than 4 space here.. (follow origin coding style)

@craftwar
Copy link
Contributor Author

加入.editorconfig,VS2017 tab預設好像是4,那就不會有問題
下次儲存就會統一了

@craftwar
Copy link
Contributor Author

改變想法,用tab比較好,tab的長度我是直接照linux kernel style用8 (github上的預設也是8)
現在這專案好像沒人管了,這個可以merge一下,基本上是安全的修改
收到關機,我讓PCMan直接結束(不存設定),否則會擋系統關機造成使用者不便

@kidwm
Copy link
Member

kidwm commented Mar 31, 2018

我也比較喜歡 TAB

@kidwm kidwm merged commit 4324360 into pcman-bbs:master Mar 31, 2018
@craftwar craftwar deleted the shutdown branch March 31, 2018 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants