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
Unmaintained
KDE Workspace
Commits
e1232610
Commit
e1232610
authored
Apr 04, 2012
by
Lukáš Tinkl
Browse files
fix showing remaining free space (in both the progress bar and the
tooltip)
parent
60055539
Changes
1
Hide whitespace changes
Inline
Side-by-side
plasma/generic/applets/devicenotifier/package/contents/ui/devicenotifier.qml
View file @
e1232610
...
...
@@ -245,8 +245,8 @@ Item {
state
:
model
[
"
State
"
]
percentUsage
:
{
var
freeSpace
=
Number
(
model
[
"
Free Space
"
]);
var
size
=
Number
(
model
[
"
Size
"
]);
var
freeSpace
=
new
Number
(
model
[
"
Free Space
"
]);
var
size
=
new
Number
(
model
[
"
Size
"
]);
var
used
=
size
-
freeSpace
;
return
used
*
100
/
size
;
}
...
...
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