aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2024-07-09 10:03:18 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2024-07-09 10:11:43 +0200
commit1aeb61ffaf15a37183d672b02e9f917401877ab5 (patch)
tree3a6dc2d3ec03d9396aa89b96cb70b1388285cfa7
parentfc7211c8abed21ee85d5cab0a05d1a86f4b0abe9 (diff)
downloadarctica-greeter-1aeb61ffaf15a37183d672b02e9f917401877ab5.tar.gz
arctica-greeter-1aeb61ffaf15a37183d672b02e9f917401877ab5.tar.bz2
arctica-greeter-1aeb61ffaf15a37183d672b02e9f917401877ab5.zip
src/session-list.vala: Skip session key 'default' when detecting the session's icon name.
-rw-r--r--src/session-list.vala6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/session-list.vala b/src/session-list.vala
index eb2892e..8354f00 100644
--- a/src/session-list.vala
+++ b/src/session-list.vala
@@ -239,6 +239,12 @@ public class SessionList : GreeterList
{
foreach (var real_session in sessions)
{
+ // Skip the default session
+ if (real_session.key == "default") {
+ continue;
+ }
+
+ // If we find the real session, use its key value for badge icon loading...
if (real_session.name == find_session.name)
{
session = real_session.key;