Centralize legacy preference storage
This commit is contained in:
@@ -4,18 +4,11 @@
|
||||
|
||||
#include "app.h"
|
||||
#include "legacy_canvas_view_services.h"
|
||||
#include "serializer.h"
|
||||
#include "settings.h"
|
||||
#include "legacy_preference_storage.h"
|
||||
|
||||
namespace pp::panopainter {
|
||||
namespace {
|
||||
|
||||
void save_legacy_boolean_preference(const char* key, bool value)
|
||||
{
|
||||
Settings::set(key, Serializer::Boolean(value));
|
||||
Settings::save();
|
||||
}
|
||||
|
||||
class LegacyAppPreferenceServices final : public pp::app::AppPreferenceServices {
|
||||
public:
|
||||
explicit LegacyAppPreferenceServices(App& app) noexcept
|
||||
|
||||
Reference in New Issue
Block a user