Bug 441264 - Save As dialog doesn't remember recently used file type
Summary: Save As dialog doesn't remember recently used file type
Status: RESOLVED INTENTIONAL
Alias: None
Product: Spectacle
Classification: Applications
Component: General (other bugs)
Version First Reported In: 21.08.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Boudhayan Gupta
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-20 20:41 UTC by Piotr Mierzwinski
Modified: 2021-08-23 19:27 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Mierzwinski 2021-08-20 20:41:48 UTC
SUMMARY
I observed that whenever I open "Save As" dialog I have always the same, default value of file type, which is saved in configuration file (~/.config/spectaclerc) in field: "defaultSaveImageFormat".
In configuration there is no any option which forcing this, so why Spectacle doesn't remember recently used file type to save?  This really annoying for me. I prefer one type and Spectacle forces different and every time I need to change it.

STEPS TO REPRODUCE
1. make any screen shot
2. invoke "Save as" and select different file type
3. click "Save"
4. make another screen shot
5. invoke "Save as" and look at "File type"

OBSERVED RESULT
always the same default file type, set in configuration file

EXPECTED RESULT
recently used file type, alternatively switched by option in configuration and by default set as "recently used file type". 

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.22.4
KDE Frameworks Version: 5.85
Qt Version: 5.15.2 with kde patches

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2021-08-23 17:42:38 UTC
It's because there is already an option to choose the default file type in the settings window. If the save dialog remembered the last-used choice, then these would conflict ("two sources of truth" problem) and we would need to remove the option in the settings window for which file type to use by default. Why can't you just change the value in the settings window to the file type you want to use more often?
Comment 2 Piotr Mierzwinski 2021-08-23 19:24:52 UTC
(In reply to Nate Graham from comment #1)
> It's because there is already an option to choose the default file type in
> the settings window. 

I reported this because wasn't able to find this option, but now I found (here:: Configure -> Save -> Filename:").

> If the save dialog remembered the last-used choice,
> then these would conflict ("two sources of truth" problem) and we would need
> to remove the option in the settings window for which file type to use by
> default. Why can't you just change the value in the settings window to the
> file type you want to use more often?

Yes,.You are right would be conflict unless would be added new option to combobox  (in configuration window) calling for example 'last used;. At the very first use of "Save As"  would be selected for example "PNG". And now if the user would changed it then new one would be suggested in "Save As" dialog.
Comment 3 Nate Graham 2021-08-23 19:27:23 UTC
Glad you found where the option lives. I think the current state is okay. :)