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

Compare content of KeyFile in DesktopFile class & lessen disk access #213

Merged
merged 8 commits into from
Oct 13, 2024

Conversation

ryonakano
Copy link
Owner

MainWindow is not obliged to keep instances of unsaved DesktopFile and saved DesktopFile. We just compare only the KeyFile in DesktopFile anyways, so make DesktopFile do that job instead.

Some methods in DesktopFile are just wrappers of KeyFile and not related to DesktopFile itself.
…are-keyfile

Conflicts:
	src/Model/DesktopFile.vala
Conflicts:
	src/Model/DesktopFile.vala
	src/Util/KeyFileUtil.vala
@ryonakano ryonakano marked this pull request as ready for review October 13, 2024 05:36
Re-loading DesktopFileModel.files_list changes addresses of DesktopFile in the list
and causes the app crash when continuing editing.
@ryonakano ryonakano changed the title Compare content of KeyFile in DesktopFile class Compare content of KeyFile in DesktopFile class & lessen disk access Oct 13, 2024
@ryonakano ryonakano merged commit fafff68 into main Oct 13, 2024
5 checks passed
@ryonakano ryonakano deleted the compare-keyfile branch October 13, 2024 08:41
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

Successfully merging this pull request may close these issues.

1 participant