diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-08-17 23:50:51 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-08-17 23:51:14 +0200 |
commit | 93d6e7a6b8d135365a0f073098ba97f905d2c550 (patch) | |
tree | aae77f89c09521b1d2e19dd2ad00ea28299a0581 /options/group.hpp | |
parent | 1a7b39fcd77ee82450d591357ea336f956d49734 (diff) |
options: support deferred writes when saving bundles
The mapping window has 13 bundles total in use. Setting them all can take up
to a large fraction of a second on some windows filesystems. Do a single
config write instead.
Diffstat (limited to 'options/group.hpp')
-rw-r--r-- | options/group.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/options/group.hpp b/options/group.hpp index 0deddfa8..05ef3b4b 100644 --- a/options/group.hpp +++ b/options/group.hpp @@ -1,6 +1,7 @@ #pragma once #include "export.hpp" +#include "compat/util.hpp" #include <map> #include <memory> #include <QString> @@ -19,6 +20,7 @@ private: public: group(const QString& name); void save() const; + void save_deferred(QSettings& s) const; void put(const QString& s, const QVariant& d); bool contains(const QString& s) const; static QString ini_directory(); |