[gnome-boxes/wip/run-in-bg: 2/2] libvirt-machine-properties: No need to talk to Portals when not flatpaked




commit 6a64cef5b0a6580515ecdd1b96fe25b5f7fe158c
Author: Felipe Borges <felipeborges gnome org>
Date:   Tue Dec 8 11:44:27 2020 +0100

    libvirt-machine-properties: No need to talk to Portals when not flatpaked

 src/libvirt-machine-properties.vala | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/libvirt-machine-properties.vala b/src/libvirt-machine-properties.vala
index cbfe53db..e88531a4 100644
--- a/src/libvirt-machine-properties.vala
+++ b/src/libvirt-machine-properties.vala
@@ -758,8 +758,10 @@ private void on_vcpus_changed (Boxes.Property property, int vcpus) {
         toggle.notify["active"].connect ((tooltip) => {
             box.tooltip_text = toggle.active? _("ā€œ%sā€ will not be paused automatically.").printf (name) :
                                               _("ā€œ%sā€ will be paused automatically to save 
resources.").printf (name);
+#if FLATPAK
             if (toggle.get_active ())
                 on_run_in_bg ();
+#endif
         });
 
         return box;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]