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

[FEATURE] Layer tree indicators for memory layers #7516

Merged
merged 6 commits into from
Aug 6, 2018

Conversation

nyalldawson
Copy link
Collaborator

Shows a memory layer icon in the layer tree for all memory layers, with a tooltip warning that the contents of the layer will be lost when closing the project.

Should help avoid data loss by users who don't realise that certain layers are temporary only.

(No screenshots until @nirvn gives me a nice icon ;) )

@nyalldawson nyalldawson added this to the 3.4 milestone Aug 2, 2018
@nyalldawson
Copy link
Collaborator Author

Now with a nice icon thanks to @nirvn:

image

@Gustry
Copy link
Contributor

Gustry commented Aug 2, 2018

Thanks. Related to https://issues.qgis.org/issues/19038

Shows a memory layer icon in the layer tree for all memory
layers, with a tooltip warning that the contents of the layer
will be lost when closing the project.

Should help avoid data loss by users who don't realise that
certain layers are temporary only.
@nyalldawson
Copy link
Collaborator Author

Now activates the "make permanent" action when clicking on the indicator!

@NathanW2
Copy link
Member

NathanW2 commented Aug 6, 2018 via email

Copy link
Contributor

@nirvn nirvn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just tried this earlier today, fantastic UX improvement.

1+ to merge.

@nyalldawson nyalldawson merged commit 317b310 into qgis:master Aug 6, 2018
@nyalldawson nyalldawson deleted the memory_indicator branch August 6, 2018 03:51
@nyalldawson
Copy link
Collaborator Author

Thanks for the review @nirvn!

@AlisterH
Copy link
Contributor

Hi guys,
Maybe it isn't the done thing commenting here long after the merge, but I'm wondering - have you thought about whether the temporary files created by default by processing algorithms should be treated more like memory layers?

These nifty new features for memory layers are nice, but they seem inconsistent when a memory layer is alongside a processing-created temporary file - those still look like any other (permanent) layer, even though they aren't really any more permanent than a memory layer.

Should help avoid data loss by users who don't realise that certain layers are temporary only.

But doesn't the inconsistency actually encourage data loss with temporary files from processing?!

@AlisterH
Copy link
Contributor

Sorry, I thought I'd better also point out that people may unintentionally create temporary output files when using processing tools.

e.g. some of those dialogs have a lot of complex options - it is easy enough to fill most of them in, then go away to check on an option or something, then come back and just run it without realising that you haven't specified an output file.

@AlisterH
Copy link
Contributor

Thanks. Related to https://issues.qgis.org/issues/19038

Note this comment there, which you can say supports what I'm saying:

It's exactly the same behavior with QGIS Processing creating temporary layers.

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

Successfully merging this pull request may close these issues.

5 participants