subsurface/subsurfacestartup.h
Patrick Valsecchi 4c4a7a6d96 Refactoring of the configuration handling.
Before, when clicking the OK button on the preferences GUI, we were
updating in-memory preferences from the GUI, saving them to the
configuration file from the GUI, reloading from the file to the
in-memory preferences. Then, to add to the ducplication, when the
application was exiting, some fields were saved again.
Basically the first step and the last step were useless appart from
the fact the the other steps where missing a few fields here and there.

This patch removes the first step and fixes the missing fields.

Signed-off-by: Patrick Valsecchi <patrick@thus.ch>
ACKed-by: Tomaz Canabrava <tcanabrava@kde.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2013-11-21 08:11:40 -08:00

22 lines
317 B
C

#ifndef SUBSURFACESTARTUP_H
#define SUBSURFACESTARTUP_H
#include "dive.h"
#include "divelist.h"
#include "libdivecomputer.h"
#include <stdbool.h>
#ifdef __cplusplus
extern "C" {
#endif
extern bool imported;
void setup_system_prefs(void);
void parse_argument(const char *arg);
#ifdef __cplusplus
}
#endif
#endif