1
0
mirror of https://github.com/KDE/latte-dock.git synced 2024-12-24 17:33:50 +03:00

improvements for Tasks applets usage

This commit is contained in:
Michail Vourlakos 2020-05-18 19:17:11 +03:00
parent 2fae4a87ba
commit 3cadc32fc4

View File

@ -151,7 +151,7 @@ bool ContainmentInterface::isCapableToShowShortcutBadges()
{
identifyMainItem();
if (!m_view->latteTasksArePresent() && m_view->tasksPresent()) {
if (!hasLatteTasks() && hasPlasmaTasks()) {
return false;
}
@ -181,7 +181,7 @@ int ContainmentInterface::applicationLauncherId() const
bool ContainmentInterface::updateBadgeForLatteTask(const QString identifier, const QString value)
{
if (!m_view->latteTasksArePresent()) {
if (!hasLatteTasks()) {
return false;
}
@ -228,7 +228,7 @@ bool ContainmentInterface::updateBadgeForLatteTask(const QString identifier, con
bool ContainmentInterface::activatePlasmaTask(const int index)
{
bool containsPlasmaTaskManager{m_view->tasksPresent() && !m_view->latteTasksArePresent()};
bool containsPlasmaTaskManager{hasPlasmaTasks() && !hasLatteTasks()};
if (!containsPlasmaTaskManager) {
return false;
@ -275,7 +275,7 @@ bool ContainmentInterface::activatePlasmaTask(const int index)
bool ContainmentInterface::newInstanceForPlasmaTask(const int index)
{
bool containsPlasmaTaskManager{m_view->tasksPresent() && !m_view->latteTasksArePresent()};
bool containsPlasmaTaskManager{hasPlasmaTasks() && !hasLatteTasks()};
if (!containsPlasmaTaskManager) {
return false;