diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2020-12-22 15:54:39 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2020-12-22 15:54:39 +0100 |
commit | e077724a45fb9be8c7137977f9bf7686ceab4cde (patch) | |
tree | eb7fa69f774e7544e21f9cf89b89d7c4ca786add | |
parent | 14e884ba0fd16da277f5f36ce02fa3c1a00a222c (diff) | |
parent | 0f5f6c0bb58be02b6625a8bd8f9e24c923ae51b4 (diff) | |
download | ayatana-indicator-bluetooth-e077724a45fb9be8c7137977f9bf7686ceab4cde.tar.gz ayatana-indicator-bluetooth-e077724a45fb9be8c7137977f9bf7686ceab4cde.tar.bz2 ayatana-indicator-bluetooth-e077724a45fb9be8c7137977f9bf7686ceab4cde.zip |
Merge branch 'tari01-pr/devices-to-sections'
Attributes GH PR #19: https://github.com/AyatanaIndicators/ayatana-indicator-bluetooth/pull/19
-rw-r--r-- | src/desktop.vala | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/desktop.vala b/src/desktop.vala index 50ed129..cab782b 100644 --- a/src/desktop.vala +++ b/src/desktop.vala @@ -179,7 +179,16 @@ class Desktop: Profile { item = new MenuItem (device.name, null); item.set_attribute_value ("icon", device.icon.serialize()); - item.set_submenu (submenu); + + if (Environment.get_variable("MIR_SOCKET") != null) + { + item.set_submenu (submenu); + } + else + { + item.set_section (submenu); + } + device_section.append_item (item); } } |