Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fmp_home
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhenfei.zhang
fmp_home
Commits
8c80c808
Commit
8c80c808
authored
Apr 28, 2017
by
NitefullWind
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1. 登录后启动外卖。
parent
f0e1ed5f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
fmp_home_p.cpp
+7
-3
No files found.
fmp_home_p.cpp
View file @
8c80c808
...
...
@@ -74,17 +74,15 @@ int FMPHomePrivate::login()
if(loginWnd.isLogined()) {
_isLogined = true;
_userName = loginWnd.userName();
return FMP_SUCCESS;
} else {
_isLogined = false;
return FMP_FAILURE;
}
#else
_isLogining
=
false
;
_isLogined
=
true
;
_userName
=
""
;
return
FMP_SUCCESS
;
#endif
return
(
_isLogined
?
FMP_SUCCESS
:
FMP_FAILURE
);
}
int
FMPHomePrivate
::
blink
(
FMPluginInterface
*
plugin
,
const
QString
&
image
)
...
...
@@ -130,6 +128,12 @@ void FMPHomePrivate::onMenuBtnClicked(QString btnName)
if
(
!
_isLogined
&&
btnName
!=
"tool"
)
{
if
(
login
()
!=
FMP_SUCCESS
)
{
return
;
}
else
if
(
btnName
!=
"takeout"
)
{
// 启动外卖
FMPBaseInterface
*
svc
=
q
->
GetService
<
FMPTakeoutInterface
>
(
q
->
_ctx
);
if
(
svc
)
{
svc
->
StartService
();
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment