Skip to content

Commit dfc955f

Browse files
committed
models: Refine checks for strict filesystem overrides
Redudant overrides were considered strict overrides, which caused the same redudant overrides to not be displayed, which is wrong. e.g., /dir in global and /dir in overrides should be displayed.
1 parent aebebfc commit dfc955f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/models/filesystemsOther.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,7 @@ var FlatpakFilesystemsOtherModel = GObject.registerClass({
103103
}
104104

105105
static isStrictlyOverriden(set, value) {
106-
const path = value.replace('!', '');
107-
108-
return (
109-
set.has(path) ||
110-
set.has(`!${path}`));
106+
return set.has(this.negate(value));
111107
}
112108

113109
static isResetOverride(value) {

0 commit comments

Comments
 (0)