diff options
author | Trial97 <alexandru.tripon97@gmail.com> | 2023-10-02 09:13:02 +0300 |
---|---|---|
committer | Trial97 <alexandru.tripon97@gmail.com> | 2023-10-02 09:13:02 +0300 |
commit | 93be8b07356058f85dd2977f941ab1fe219b36de (patch) | |
tree | e6056c648ad5a31975ceebc42e3a37a64a8ef196 | |
parent | eab1180f68a4c994ad09c57ddf78ecd62610caa1 (diff) | |
download | PrismLauncher-93be8b07356058f85dd2977f941ab1fe219b36de.tar.gz PrismLauncher-93be8b07356058f85dd2977f941ab1fe219b36de.tar.bz2 PrismLauncher-93be8b07356058f85dd2977f941ab1fe219b36de.zip |
refresh default account when list changes
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
-rw-r--r-- | launcher/ui/MainWindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/launcher/ui/MainWindow.cpp b/launcher/ui/MainWindow.cpp index 64873ebb..1202c331 100644 --- a/launcher/ui/MainWindow.cpp +++ b/launcher/ui/MainWindow.cpp @@ -363,7 +363,7 @@ MainWindow::MainWindow(QWidget* parent) : QMainWindow(parent), ui(new Ui::MainWi // Shouldn't have to use lambdas here like this, but if I don't, the compiler throws a fit. // Template hell sucks... connect(APPLICATION->accounts().get(), &AccountList::defaultAccountChanged, [this] { defaultAccountChanged(); }); - connect(APPLICATION->accounts().get(), &AccountList::listChanged, [this] { repopulateAccountsMenu(); }); + connect(APPLICATION->accounts().get(), &AccountList::listChanged, [this] { defaultAccountChanged(); }); // Show initial account defaultAccountChanged(); |