Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in / Register
Toggle navigation
J
jami-client-windows
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Security & Compliance
Security & Compliance
Dependency List
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
savoirfairelinux
jami-client-windows
Commits
90bd5a8c
Commit
90bd5a8c
authored
Jun 08, 2015
by
Edric Milaret
Committed by
Guillaume Roguez
Jun 10, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
autostart: add start minimized to commandline options
Refs #74811 Change-Id: Ia1c6929c2b46dc9815692e9dfe8be7350064fc90
parent
cdc978bf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
main.cpp
main.cpp
+12
-1
utils.cpp
utils.cpp
+1
-0
No files found.
main.cpp
View file @
90bd5a8c
...
@@ -50,7 +50,18 @@ main(int argc, char *argv[])
...
@@ -50,7 +50,18 @@ main(int argc, char *argv[])
}
}
MainWindow
w
;
MainWindow
w
;
w
.
show
();
auto
startMinimized
=
false
;
for
(
auto
string
:
QCoreApplication
::
arguments
())
{
if
(
string
==
"-m"
||
string
==
"--minimized"
)
startMinimized
=
true
;
}
if
(
not
startMinimized
)
w
.
show
();
else
w
.
showMinimized
();
QObject
::
connect
(
&
a
,
&
QApplication
::
aboutToQuit
,
[
&
a
]()
{
QObject
::
connect
(
&
a
,
&
QApplication
::
aboutToQuit
,
[
&
a
]()
{
delete
CallModel
::
instance
();
delete
CallModel
::
instance
();
...
...
utils.cpp
View file @
90bd5a8c
...
@@ -46,6 +46,7 @@ Utils::CreateLink(LPCWSTR lpszPathObj, LPCWSTR lpszPathLink) {
...
@@ -46,6 +46,7 @@ Utils::CreateLink(LPCWSTR lpszPathObj, LPCWSTR lpszPathLink) {
{
{
IPersistFile
*
ppf
;
IPersistFile
*
ppf
;
psl
->
SetPath
(
lpszPathObj
);
psl
->
SetPath
(
lpszPathObj
);
psl
->
SetArguments
(
TEXT
(
"--minimized"
));
hres
=
psl
->
QueryInterface
(
IID_IPersistFile
,
(
LPVOID
*
)
&
ppf
);
hres
=
psl
->
QueryInterface
(
IID_IPersistFile
,
(
LPVOID
*
)
&
ppf
);
if
(
SUCCEEDED
(
hres
))
if
(
SUCCEEDED
(
hres
))
...
...
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