Bug 472854 - KCalc does not remember window size
Summary: KCalc does not remember window size
Status: RESOLVED UPSTREAM
Alias: None
Product: kcalc
Classification: Applications
Component: general (show other bugs)
Version: 23.04.3
Platform: Arch Linux Linux
: NOR minor
Target Milestone: ---
Assignee: Gabriel Barrantes
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-31 18:38 UTC by Luka Rasputin
Modified: 2024-08-13 02:31 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Luka Rasputin 2023-07-31 18:38:03 UTC
SUMMARY
When you start KCalc, it always has the same width and height.

STEPS TO REPRODUCE
1. Resize KCalc window
2. Restart KCalc

OBSERVED RESULT
KCalc has the minimum possible width and height.

EXPECTED RESULT
KCalc restores the window size as it was before restarting.

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.27.6
KDE Frameworks Version: 5.108.0
Qt Version: 5.15.10
Comment 1 Bug Janitor Service 2023-08-15 16:01:04 UTC
A possibly relevant merge request was started @ https://invent.kde.org/utilities/kcalc/-/merge_requests/60
Comment 2 Nate Graham 2023-08-15 19:33:11 UTC
Git commit 4222c6ef89601010fc846009e6e39b54f387840b by Nate Graham, on behalf of Gabriel Barrantes.
Committed on 15/08/2023 at 21:33.
Pushed by ngraham into branch 'master'.

Remember windows size and location upon closing the app

KCalc app was not remembering window size and position when closing.
This adds functionality to remember window size and position.
FIXED-IN: 23.12

M  +2    -3    kcalc.cpp

https://invent.kde.org/utilities/kcalc/-/commit/4222c6ef89601010fc846009e6e39b54f387840b
Comment 3 Peter 2024-08-12 21:51:47 UTC
This bug is back in version 24.05.2. Closing the flatpak and reopening it causes it to open with the default wide view.
Comment 4 Gabriel Barrantes 2024-08-13 02:31:12 UTC
(In reply to Peter from comment #3)
> This bug is back in version 24.05.2. Closing the flatpak and reopening it
> causes it to open with the default wide view.

I notice this too (on kde6) and seems to be a problem in kde6 (and not in kde5), I tested a few weeks ago other apps and the size was also reset to default and same with the position, so is not an issue of kcalc.
Right now, testing on Neon (KDE Plasma Version: 6.0.4 KDE Frameworks Version: 6.3.0) , the size is being remembered but the position still resets to default (I think this was also stored in Plasma 5), so I guess the team partially fixed this at some point, probably the position reset will also be solved at some point. Anyway, you can open the issue for plasma (only for the position because the size seems to be working now) but most likely they are already aware of it...