YoannQDQ / qgis-memory-layer-saver

Makes data in memory provider layers persistent between QGIS sessions. Data saved in .mldata file alongside project file.
Other
7 stars 4 forks source link

Hide memory layer saving dialogue #7

Closed fuzzysolutions closed 6 years ago

fuzzysolutions commented 6 years ago

QGIS 3.2 shows a reminder that memory layers will be lost when attempting to close a project containing such layers: grafik As MemoryLayerSaver takes care of saving memory layers, there is no need for this query as long as the plugin is activated. It would be a nice feature if the plugin could hide the query.

ccrook commented 6 years ago

@fuzzysolutions Thanks for raising this. I've asked on the developer list and Mathieu has responded with what I need to do

There is:

QgsSettings().value( QStringLiteral( "askToSaveMemoryLayers" ), true, QgsSettings::App )

Switch that to false, that'll disable the warning.

I'll look at putting that in shortly.