aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2023-09-15 20:28:27 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2023-09-15 20:28:27 +0200
commitf917d8cef0adbdfaa85412be4879779793987ab7 (patch)
tree1b8624bd5760e0dee421cfee44dd6fee56ee9d6a /src
parente3e1452cf3976f27dd1385b24540b53da6cf0b75 (diff)
downloadarctica-greeter-f917d8cef0adbdfaa85412be4879779793987ab7.tar.gz
arctica-greeter-f917d8cef0adbdfaa85412be4879779793987ab7.tar.bz2
arctica-greeter-f917d8cef0adbdfaa85412be4879779793987ab7.zip
src/arctica-greeter.vala: Use '&&' operators instead of '&' in if-clauses.
Diffstat (limited to 'src')
-rw-r--r--src/arctica-greeter.vala8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/arctica-greeter.vala b/src/arctica-greeter.vala
index 6dd5f43..024e3ad 100644
--- a/src/arctica-greeter.vala
+++ b/src/arctica-greeter.vala
@@ -326,17 +326,17 @@ public class ArcticaGreeter : Object
debug ("default Xsession hidden: '%s'", session);
session = null;
}
- else if (AGSettings.get_boolean (AGSettings.KEY_HIDE_WAYLAND_SESSIONS) &
+ else if (AGSettings.get_boolean (AGSettings.KEY_HIDE_WAYLAND_SESSIONS) &&
FileUtils.test (wsessions_path, FileTest.EXISTS)) {
debug ("Wayland session hidden: '%s'", session);
session = null;
}
- else if (AGSettings.get_boolean (AGSettings.KEY_HIDE_X11_SESSIONS) &
+ else if (AGSettings.get_boolean (AGSettings.KEY_HIDE_X11_SESSIONS) &&
FileUtils.test (xsessions_path, FileTest.EXISTS)) {
debug ("X11 session hidden: '%s'", session);
session = null;
}
- else if (!FileUtils.test (xsessions_path, FileTest.EXISTS) &
+ else if (!FileUtils.test (xsessions_path, FileTest.EXISTS) &&
!FileUtils.test (wsessions_path, FileTest.EXISTS))
{
debug ("Invalid session: '%s'", session);
@@ -344,7 +344,7 @@ public class ArcticaGreeter : Object
}
}
- if ((fallback == true) & (session == null)) {
+ if ((fallback == true) && (session == null)) {
var default_session = get_default_session ();
debug ("Invalid session: '%s'. Using session '%s' instead.", session, default_session);
return default_session;