Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

popupHeight and favGridCols reset to original default after exit or restart #129

Closed
maxsspeaker opened this issue May 10, 2022 · 5 comments

Comments

@maxsspeaker
Copy link

for some unknown reason, the menu does not want to read the popupHeight and favGridCols values ​​from the config, which causes the menu size to reset

to these values:
popupHeight: 0
favGridCols: 200

but there were such values:
favGridCols 12
popupHeight 400

before logging out:
2022-05-10_10-57

after logging out:
2022-05-10_10-58

I have read other Issues but didn't find anything about it.

@Zren
Copy link
Owner

Zren commented May 10, 2022

favGridCols: 200

200 columns wide!? Did you mix up the two? Eg:

favGridCols: 0
popupHeight: 200

If you have KDE Frameworks 5.93 then it's probably this bug #125.

Since KDE Frameworks doesn't have the ability to release a "bugfix" release, there's basically a month long window where the bug takes effect unless every since distro patches it with a fix. Affected distros are listed here:
Zren/plasma-applet-eventcalendar#307 (comment)

@maxsspeaker
Copy link
Author

maxsspeaker commented May 10, 2022

200 columns wide!? Did you mix up the two?

yes, I mixed up the numbers when I rewrote them from the settings

I have Kde Neon, and from what I read, this bug will be fixed on May 14th, but is there any way to fix it right away?

tell me please, I'm not very good at configurations and sources...

@Zren
Copy link
Owner

Zren commented May 10, 2022

You can use Meta+RightClick+Drag to resize a window as a workaround. You'll need to do it every restart.

If you restart multiple times a day... then I guess you could:

Edit: ~/.local/share/plasma/plasmoids/com.github.zren.tiledmenu/contents/ui/Main.qml

Change:

	Layout.minimumWidth: config.leftSectionWidth
	Layout.preferredWidth: config.popupWidth
	Layout.preferredHeight: config.popupHeight

to:

	Layout.minimumWidth: config.popupWidth
	Layout.minimumHeight: config.popupHeight
	Layout.preferredWidth: config.popupWidth
	Layout.preferredHeight: config.popupHeight

Note that this is untested since I can't test the bug in OpenSUSE anymore.

@maxsspeaker
Copy link
Author

thanks, this fixed the problem and now the size is not reset

@LinuxLikeUnix
Copy link

LinuxLikeUnix commented May 20, 2022

You can use Meta+RightClick+Drag to resize a window as a workaround. You'll need to do it every restart.

If you restart multiple times a day... then I guess you could:

Edit: ~/.local/share/plasma/plasmoids/com.github.zren.tiledmenu/contents/ui/Main.qml

Change:

	Layout.minimumWidth: config.leftSectionWidth
	Layout.preferredWidth: config.popupWidth
	Layout.preferredHeight: config.popupHeight

to:

	Layout.minimumWidth: config.popupWidth
	Layout.minimumHeight: config.popupHeight
	Layout.preferredWidth: config.popupWidth
	Layout.preferredHeight: config.popupHeight

Note that this is untested since I can't test the bug in OpenSUSE anymore.

This worked very well for me on Manjaro Plasma.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants