Changeset 11dcae4 in subsurface


Ignore:
Timestamp:
Feb 5, 2017, 11:59:47 AM (4 months ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
11ccadb
Parents:
d4dbd0be
git-author:
Joakim Bygdell <j.bygdell@…> (02/04/17 01:42:00)
git-committer:
Dirk Hohndel <dirk@…> (02/05/17 11:59:47)
Message:

MOBILE: Read profile settings from git

Signed-off-by: Joakim Bygdell <j.bygdell@…>

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • core/subsurfacestartup.c

    r4a894e0 r11dcae4  
    88#include "libdivecomputer/version.h"
    99
    10 struct preferences prefs, informational_prefs;
     10struct preferences prefs, informational_prefs, git_prefs;
    1111struct preferences default_prefs = {
    1212        .cloud_base_url = "https://cloud.subsurface-divelog.org/",
  • mobile-widgets/qmlmanager.cpp

    r0e57033 r11dcae4  
    156156                        informational_prefs.units = IMPERIAL_units;
    157157                prefs.units = informational_prefs.units;
     158                prefs.tankbar = git_prefs.tankbar;
     159                prefs.dcceiling = git_prefs.dcceiling;
    158160                process_dives(false, false);
    159161                DiveListModel::instance()->clear();
     
    541543                informational_prefs.units = IMPERIAL_units;
    542544        prefs.units = informational_prefs.units;
     545        prefs.tankbar = git_prefs.tankbar;
     546        prefs.dcceiling = git_prefs.dcceiling;
    543547        DiveListModel::instance()->clear();
    544548        process_dives(false, false);
  • subsurface-mobile-main.cpp

    rca6a241 r11dcae4  
    5555
    5656        // always show the divecomputer reported ceiling in red
    57         prefs.dcceiling = 1;
    5857        prefs.redceiling = 1;
    5958
Note: See TracChangeset for help on using the changeset viewer.