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
6826218d
Commit
6826218d
authored
Jun 13, 2017
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(ui/views/App/Calls/Incall): prevent many clicks on statistics button
parent
e9071f4c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
Incall.js
linphone-desktop/ui/views/App/Calls/Incall.js
+12
-0
Incall.qml
linphone-desktop/ui/views/App/Calls/Incall.qml
+3
-1
No files found.
linphone-desktop/ui/views/App/Calls/Incall.js
View file @
6826218d
...
...
@@ -16,6 +16,13 @@ function computeAvatarSize (maxSize) {
return
size
<
width
?
size
:
width
}
function
handleCallStatisticsClosed
()
{
// Prevent many clicks on call statistics button.
Utils
.
setTimeout
(
callQuality
,
500
,
function
()
{
callQuality
.
enabled
=
true
})
}
function
handleStatusChanged
(
status
)
{
if
(
status
===
Linphone
.
CallModel
.
CallStatusEnded
)
{
var
fullscreen
=
incall
.
_fullscreen
...
...
@@ -72,6 +79,11 @@ function makeReadableSecuredString (securedString) {
return
qsTr
(
'
securedStringFormat
'
).
replace
(
'
%1
'
,
securedString
)
}
function
openCallStatistics
()
{
callQuality
.
enabled
=
false
callStatistics
.
open
()
}
function
showFullscreen
()
{
if
(
incall
.
_fullscreen
)
{
return
...
...
linphone-desktop/ui/views/App/Calls/Incall.qml
View file @
6826218d
...
...
@@ -93,7 +93,7 @@ Rectangle {
icon
:
'
call_quality_0
'
useStates
:
false
onClicked
:
callStatistics
.
open
()
onClicked
:
Logic
.
openCallStatistics
()
// See: http://www.linphone.org/docs/liblinphone/group__call__misc.html#ga62c7d3d08531b0cc634b797e273a0a73
Timer
{
...
...
@@ -113,6 +113,8 @@ Rectangle {
relativeTo
:
callQuality
relativeY
:
CallStyle
.
header
.
stats
.
relativeY
onClosed
:
Logic
.
handleCallStatisticsClosed
()
}
}
...
...
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