Some settings can now be "reverted" by pressing cancel in the settings dialog

Modify visibility of some members of SettingsDialog
update external libraries
Progress on #180
This commit is contained in:
Rasmus Karlsson
2017-12-28 19:03:52 +01:00
parent 7d259fe7e6
commit 258288bad9
5 changed files with 132 additions and 25 deletions
+3 -3
View File
@@ -1,7 +1,6 @@
#pragma once
#include "settingsmanager.hpp"
#include "settingssnapshot.hpp"
#include "widgets/accountswitchwidget.hpp"
#include "widgets/helper/settingsdialogtab.hpp"
@@ -27,11 +26,13 @@ namespace widgets {
class SettingsDialog : public BaseWidget
{
public:
SettingsDialog();
void select(SettingsDialogTab *tab);
friend class SettingsDialogTab;
public:
enum class PreferredTab {
NoPreference,
Accounts,
@@ -45,7 +46,6 @@ protected:
private:
void refresh();
SettingsSnapshot snapshot;
std::vector<SettingsDialogTab *> tabs;
pajlada::Settings::Setting<int> usernameDisplayMode;