diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2019-10-05 08:33:07 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-05 08:33:07 -0400 |
| commit | 605b669bed0344fa6539a471a040d3ceeb24771c (patch) | |
| tree | ef6be497d8acbeab585fbb7245514d3f72f8c9ac /src/statusbar.cpp | |
| parent | 4921d2a0dd1726e48b520e341e10b775be0174ce (diff) | |
| parent | c4d96ed8cfee5c66089f9bdf7c0ce8567aaf46fe (diff) | |
Merge pull request #851 from isanae/api-visible-at-startup
Check the api setting on startup to hide it if needed
Diffstat (limited to 'src/statusbar.cpp')
| -rw-r--r-- | src/statusbar.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/statusbar.cpp b/src/statusbar.cpp index 3734aa87..c2c54862 100644 --- a/src/statusbar.cpp +++ b/src/statusbar.cpp @@ -9,7 +9,7 @@ StatusBar::StatusBar(QWidget* parent) : { } -void StatusBar::setup(Ui::MainWindow* mainWindowUI) +void StatusBar::setup(Ui::MainWindow* mainWindowUI, const Settings& settings) { ui = mainWindowUI; m_notifications = new StatusBarAction(ui->actionNotifications); @@ -51,6 +51,8 @@ void StatusBar::setup(Ui::MainWindow* mainWindowUI) clearMessage(); setProgress(-1); setAPI({}, {}); + + checkSettings(settings); } void StatusBar::setProgress(int percent) |
