mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Make rulergraph a pref as well
I don't see a point in treating it differently from the other graphs. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
6545855b65
commit
7b0f737f60
2 changed files with 3 additions and 1 deletions
1
pref.h
1
pref.h
|
@ -43,6 +43,7 @@ struct preferences {
|
|||
short show_average_depth;
|
||||
short zoomed_plot;
|
||||
short hrgraph;
|
||||
short rulergraph;
|
||||
short save_userid_local;
|
||||
char *userid;
|
||||
};
|
||||
|
|
|
@ -722,7 +722,7 @@ void MainWindow::readSettings()
|
|||
TOOLBOX_PREF_BUTTON(pp_graphs.pn2, pn2graph, profPn2);
|
||||
TOOLBOX_PREF_BUTTON(pp_graphs.po2, po2graph, profPO2);
|
||||
TOOLBOX_PREF_BUTTON(hrgraph, hrgraph, profHR);
|
||||
ui.profRuler->setChecked(s.value("rulergraph").toBool());
|
||||
TOOLBOX_PREF_BUTTON(rulergraph, rulergraph, profRuler);
|
||||
TOOLBOX_PREF_BUTTON(show_sac, show_sac, profSAC);
|
||||
}
|
||||
|
||||
|
@ -1191,6 +1191,7 @@ void MainWindow::on_profHR_clicked(bool triggered)
|
|||
}
|
||||
void MainWindow::on_profRuler_clicked(bool triggered)
|
||||
{
|
||||
prefs.rulergraph = triggered;
|
||||
TOOLBOX_PREF_PROFILE(rulergraph);
|
||||
}
|
||||
void MainWindow::on_profSAC_clicked(bool triggered)
|
||||
|
|
Loading…
Add table
Reference in a new issue