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
Utilities
Filelight
Commits
8c4f3ba1
Commit
8c4f3ba1
authored
Aug 23, 2020
by
Martin Tobias Holmedahl Sandsmark
Browse files
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
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
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