|
|
@ -1,4 +1,4 @@
|
|
|
|
From 34f7c9315edf734a442bbf1ecf7f2264cc67c553 Mon Sep 17 00:00:00 2001
|
|
|
|
From ce233c616d8ec5141e24d4962739040b4c99d989 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Adam Williamson <awilliam@redhat.com>
|
|
|
|
From: Adam Williamson <awilliam@redhat.com>
|
|
|
|
Date: Fri, 1 Sep 2023 17:09:16 -0700
|
|
|
|
Date: Fri, 1 Sep 2023 17:09:16 -0700
|
|
|
|
Subject: [PATCH] profiledefaults: don't automatically suspend by default if
|
|
|
|
Subject: [PATCH] profiledefaults: don't automatically suspend by default if
|
|
|
@ -144,25 +144,25 @@ index 481caa73..6f5ffb48 100644
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
diff --git a/kcmodule/profiles/EditPage.cpp b/kcmodule/profiles/EditPage.cpp
|
|
|
|
diff --git a/kcmodule/profiles/EditPage.cpp b/kcmodule/profiles/EditPage.cpp
|
|
|
|
index 22ed5d0e..bb4bfb80 100644
|
|
|
|
index 22ed5d0e..119d818e 100644
|
|
|
|
--- a/kcmodule/profiles/EditPage.cpp
|
|
|
|
--- a/kcmodule/profiles/EditPage.cpp
|
|
|
|
+++ b/kcmodule/profiles/EditPage.cpp
|
|
|
|
+++ b/kcmodule/profiles/EditPage.cpp
|
|
|
|
@@ -80,6 +80,7 @@ EditPage::EditPage(QWidget *parent, const QVariantList &args)
|
|
|
|
@@ -79,6 +79,7 @@ EditPage::EditPage(QWidget *parent, const QVariantList &args)
|
|
|
|
|
|
|
|
|
|
|
|
PowerDevil::ProfileGenerator::generateProfiles(
|
|
|
|
PowerDevil::ProfileGenerator::generateProfiles(
|
|
|
|
interface->isTabletMode(),
|
|
|
|
interface->isTabletMode(),
|
|
|
|
PowerDevil::PowerManagement::instance()->canSuspend(),
|
|
|
|
|
|
|
|
+ PowerDevil::PowerManagement::instance()->isVirtualMachine(),
|
|
|
|
+ PowerDevil::PowerManagement::instance()->isVirtualMachine(),
|
|
|
|
|
|
|
|
PowerDevil::PowerManagement::instance()->canSuspend(),
|
|
|
|
PowerDevil::PowerManagement::instance()->canHibernate()
|
|
|
|
PowerDevil::PowerManagement::instance()->canHibernate()
|
|
|
|
);
|
|
|
|
);
|
|
|
|
m_profilesConfig->reparseConfiguration();
|
|
|
|
@@ -198,6 +199,7 @@ void EditPage::restoreDefaultProfiles()
|
|
|
|
@@ -199,6 +200,7 @@ void EditPage::restoreDefaultProfiles()
|
|
|
|
|
|
|
|
PowerDevil::ProfileGenerator::generateProfiles(
|
|
|
|
PowerDevil::ProfileGenerator::generateProfiles(
|
|
|
|
interface->isTabletMode(),
|
|
|
|
interface->isTabletMode(),
|
|
|
|
PowerDevil::PowerManagement::instance()->canSuspend(),
|
|
|
|
|
|
|
|
+ PowerDevil::PowerManagement::instance()->isVirtualMachine(),
|
|
|
|
+ PowerDevil::PowerManagement::instance()->isVirtualMachine(),
|
|
|
|
|
|
|
|
PowerDevil::PowerManagement::instance()->canSuspend(),
|
|
|
|
PowerDevil::PowerManagement::instance()->canHibernate()
|
|
|
|
PowerDevil::PowerManagement::instance()->canHibernate()
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
--
|
|
|
|
2.41.0
|
|
|
|
2.41.0
|
|
|
|
|
|
|
|
|
|
|
|