Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linphone-desktop
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
linphone-desktop
Commits
e3401603
Commit
e3401603
authored
Feb 21, 2017
by
Ghislain MARY
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add --iconified command line option.
parent
87363226
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
0 deletions
+20
-0
en.ts
linphone-desktop/assets/languages/en.ts
+4
-0
fr.ts
linphone-desktop/assets/languages/fr.ts
+4
-0
App.cpp
linphone-desktop/src/app/App.cpp
+7
-0
App.hpp
linphone-desktop/src/app/App.hpp
+2
-0
MainWindow.qml
linphone-desktop/ui/views/App/Main/MainWindow.qml
+3
-0
No files found.
linphone-desktop/assets/languages/en.ts
View file @
e3401603
...
...
@@ -23,6 +23,10 @@
<
source
>
applicationDescription
<
/source
>
<
translation
>
A
free
SIP
video
-
phone
<
/translation
>
<
/message
>
<
message
>
<
source
>
commandLineOptionIconified
<
/source
>
<
translation
>
Start
in
the
system
tray
,
do
not
show
the
main
interface
.
<
/translation
>
<
/message
>
<
/context
>
<
context
>
<
name
>
CallControls
<
/name
>
...
...
linphone-desktop/assets/languages/fr.ts
View file @
e3401603
...
...
@@ -23,6 +23,10 @@
<
source
>
applicationDescription
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
>
<
source
>
commandLineOptionIconified
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
/context
>
<
context
>
<
name
>
CallControls
<
/name
>
...
...
linphone-desktop/src/app/App.cpp
View file @
e3401603
...
...
@@ -151,6 +151,10 @@ void App::initContentApp () {
}
}
bool
App
::
isInitiallyIconified
()
const
{
return
m_parser
.
isSet
(
"iconified"
);
}
// -----------------------------------------------------------------------------
void
App
::
parseArgs
()
{
...
...
@@ -159,6 +163,9 @@ void App::parseArgs () {
m_parser
.
addVersionOption
();
m_parser
.
addOptions
({
{
"config"
,
tr
(
"commandLineOptionConfig"
),
"file"
},
#ifndef __APPLE__
{
"iconified"
,
tr
(
"commandLineOptionIconified"
)
},
#endif // __APPLE__
{
"selftest"
,
tr
(
"commandLineOptionSelftest"
)
},
{
{
"V"
,
"verbose"
},
tr
(
"commandLineOptionVerbose"
)
}
});
...
...
linphone-desktop/src/app/App.hpp
View file @
e3401603
...
...
@@ -58,6 +58,8 @@ public:
void
initContentApp
();
Q_INVOKABLE
bool
isInitiallyIconified
()
const
;
Q_INVOKABLE
QString
locale
()
const
{
return
m_locale
;
}
...
...
linphone-desktop/ui/views/App/Main/MainWindow.qml
View file @
e3401603
...
...
@@ -105,6 +105,9 @@ Controls1.ApplicationWindow {
Component.onCompleted
:
Utils
.
setTimeout
(
window
,
0
,
function
()
{
_setView
(
'
Home
'
)
if
(
App
.
isInitiallyIconified
())
{
window
.
hide
()
}
})
onActiveFocusItemChanged
:
activeFocusItem
==
null
&&
smartSearchBar
.
hideMenu
()
...
...
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