mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +00:00
correct call time
This commit is contained in:
parent
e254f456ac
commit
992f3fecd2
1 changed files with 2 additions and 1 deletions
|
|
@ -75,6 +75,7 @@ Rectangle {
|
||||||
}
|
}
|
||||||
|
|
||||||
function secondsToTimeString(seconds) {
|
function secondsToTimeString(seconds) {
|
||||||
|
seconds = Math.floor(seconds/1000)
|
||||||
var h = Math.floor(seconds / 3600);
|
var h = Math.floor(seconds / 3600);
|
||||||
var m = Math.floor((seconds - (h * 3600)) / 60);
|
var m = Math.floor((seconds - (h * 3600)) / 60);
|
||||||
var s = seconds - h * 3600 - m * 60;
|
var s = seconds - h * 3600 - m * 60;
|
||||||
|
|
@ -232,7 +233,7 @@ Rectangle {
|
||||||
DialerIconButton {
|
DialerIconButton {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
source: dialer.state == "incoming" ? "call-start" : (manager.isMicrophoneMuted ? "audio-volume-high" : "audio-volume-muted")
|
source: dialer.state == "incoming" ? "call-start" : (manager.isMicrophoneMuted ? "audio-volume-muted" : "audio-volume-high")
|
||||||
Rectangle {
|
Rectangle {
|
||||||
z: -1
|
z: -1
|
||||||
color: dialer.state == "incoming" ? "green" : "white"
|
color: dialer.state == "incoming" ? "green" : "white"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue