Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Utilities
Filelight
Commits
8c4f3ba1
Commit
8c4f3ba1
authored
Aug 23, 2020
by
Martin Tobias Holmedahl Sandsmark
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
if remote filesystems is disabled, don't show them (they will never be scanned anyways)
parent
f6256517
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
src/summaryWidget.cpp
src/summaryWidget.cpp
+7
-2
No files found.
src/summaryWidget.cpp
View file @
8c4f3ba1
...
...
@@ -115,8 +115,9 @@ void SummaryWidget::createDiskMaps()
{
Disk
const
&
disk
=
it
.
value
();
if
(
disk
.
free
==
0
&&
disk
.
used
==
0
)
if
(
disk
.
free
==
0
&&
disk
.
used
==
0
)
{
continue
;
}
QWidget
*
volume
=
new
QWidget
(
this
);
QVBoxLayout
*
volumeLayout
=
new
QVBoxLayout
(
volume
);
...
...
@@ -158,7 +159,11 @@ void SummaryWidget::createDiskMaps()
DiskList
::
DiskList
()
{
static
const
QSet
<
QByteArray
>
ignoredFsTypes
=
{
"tmpfs"
,
"squashfs"
,
"autofs"
};
QSet
<
QByteArray
>
ignoredFsTypes
=
{
"tmpfs"
,
"squashfs"
,
"autofs"
};
if
(
!
Config
::
scanRemoteMounts
)
{
ignoredFsTypes
+=
Config
::
remoteFsTypes
;
}
for
(
const
QStorageInfo
&
storage
:
QStorageInfo
::
mountedVolumes
())
{
if
(
!
storage
.
isReady
()
||
ignoredFsTypes
.
contains
(
storage
.
fileSystemType
()))
{
...
...
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