Bug 491950 - showOnlyMinimized option default is set to false but it is actually an integer
Summary: showOnlyMinimized option default is set to false but it is actually an integer
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Task Manager and Icons-Only Task Manager widgets (show other bugs)
Version: 6.1.4
Platform: unspecified Linux
: NOR minor
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: junior-jobs
: 491951 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-08-20 20:14 UTC by Heitor Augusto Lopes Nunes
Modified: 2024-08-21 13:48 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.2.0
Sentry Crash Report:


Attachments
Icon tasks value (93.18 KB, image/png)
2024-08-20 20:14 UTC, Heitor Augusto Lopes Nunes
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Heitor Augusto Lopes Nunes 2024-08-20 20:14:46 UTC
Created attachment 172786 [details]
Icon tasks value

SUMMARY

The showOnlyMinimized option is an integer but the default value is set to false. And when it is set to true it turns into the value 1.

This option should actually be a boolean instead of an integer


STEPS TO REPRODUCE
1. See https://invent.kde.org/plasma/plasma-desktop/-/blob/master/applets/taskmanager/package/contents/config/main.xml to know the default value
2. Open task manager settings and check "Show only minimized" option
3. See plasma-org.kde.plasma.desktop-appletsrc
4. Check showOnlyMinimized

OBSERVED RESULT

Value in plasma-org.kde.plasma.desktop-appletsrc is set to 1

EXPECTED RESULT

Value should true or default value should be set to 0

SOFTWARE/OS VERSIONS
KDE Plasma Version: 6.1.4
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2
Comment 1 Linus Pleyer 2024-08-20 20:42:02 UTC
*** Bug 491951 has been marked as a duplicate of this bug. ***
Comment 2 Nate Graham 2024-08-21 02:04:05 UTC
Wanna fix it?
Comment 3 Heitor Augusto Lopes Nunes 2024-08-21 09:26:08 UTC
(In reply to Nate Graham from comment #2)
> Wanna fix it?

Sure
Comment 4 Nate Graham 2024-08-21 13:48:22 UTC
Git commit ce307a1d8a67550aa024a43ae745493fd9646592 by Nate Graham, on behalf of Heitor Augusto Lopes Nunes.
Committed on 21/08/2024 at 13:48.
Pushed by ngraham into branch 'master'.

applets/taskmanager: fix showOnlyMinimized type
FIXED-IN: 6.2.0

M  +1    -1    applets/taskmanager/package/contents/config/main.xml

https://invent.kde.org/plasma/plasma-desktop/-/commit/ce307a1d8a67550aa024a43ae745493fd9646592