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:
parent
2fae4a87ba
commit
3cadc32fc4
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user