Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Plasma Workspace
Commits
3291c451
Commit
3291c451
authored
May 05, 2020
by
Kai Uwe Broulik
🍇
Browse files
Merge branch 'Plasma/5.18'
parents
bb053d8c
a5c9e000
Changes
2
Hide whitespace changes
Inline
Side-by-side
applets/notifications/package/contents/ui/FullRepresentation.qml
View file @
3291c451
...
...
@@ -206,7 +206,7 @@ PlasmaComponents3.Page {
var
sections
=
[];
// Show until time if valid but not if too far int he future
if
(
!
isNaN
(
inhibitedUntil
.
getTime
())
&&
inhibitedUntil
.
getTime
()
-
new
Date
().
getTime
()
<
365
*
24
*
60
*
60
*
1000
/* 1 year*/
)
{
if
(
!
isNaN
(
inhibitedUntil
.
getTime
())
&&
inhibitedUntil
.
getTime
()
-
new
Date
().
getTime
()
<
100
*
24
*
60
*
60
*
1000
/* 1 year*/
)
{
sections
.
push
(
i18nc
(
"
Do not disturb until date
"
,
"
Until %1
"
,
KCoreAddons
.
Format
.
formatRelativeDateTime
(
inhibitedUntil
,
Locale
.
ShortFormat
)));
}
...
...
applets/notifications/package/contents/ui/main.qml
View file @
3291c451
...
...
@@ -78,7 +78,7 @@ Item {
// Show until time if valid but not if too far in the future
// TODO check app inhibition, too
if
(
inhibitedUntilValid
&&
inhibitedUntil
.
getTime
()
-
new
Date
().
getTime
()
<
365
*
24
*
60
*
60
*
1000
/* 1
year
*/
)
{
&&
inhibitedUntil
.
getTime
()
-
new
Date
().
getTime
()
<
100
*
24
*
60
*
60
*
1000
/* 1
00 days
*/
)
{
lines
.
push
(
i18n
(
"
Do not disturb until %1
"
,
KCoreAddons
.
Format
.
formatRelativeDateTime
(
inhibitedUntil
,
Locale
.
ShortFormat
)));
}
else
{
...
...
Write
Preview
Supports
Markdown
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