Mercurial > minori
comparison src/services/services.cc @ 112:80f49f623d30
locale: allow switching locales without restarting
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Mon, 06 Nov 2023 13:41:30 -0500 |
parents | 9b2b41f83a5e |
children | c130f47f6f48 |
comparison
equal
deleted
inserted
replaced
111:fcae8bece0ec | 112:80f49f623d30 |
---|---|
7 namespace Services { | 7 namespace Services { |
8 | 8 |
9 void Synchronize() { | 9 void Synchronize() { |
10 switch (session.config.service) { | 10 switch (session.config.service) { |
11 case Anime::Services::ANILIST: AniList::GetAnimeList(); break; | 11 case Anime::Services::ANILIST: AniList::GetAnimeList(); break; |
12 default: { | 12 default: break; |
13 QMessageBox msg; | |
14 msg.setInformativeText("It seems you haven't yet selected a service to use."); | |
15 msg.setText("Would you like to select one now?"); | |
16 msg.setStandardButtons(QMessageBox::Yes | QMessageBox::No); | |
17 msg.setDefaultButton(QMessageBox::Yes); | |
18 int ret = msg.exec(); | |
19 if (ret == QMessageBox::Yes) { | |
20 SettingsDialog dialog; | |
21 dialog.exec(); | |
22 } | |
23 break; | |
24 } | |
25 } | 13 } |
26 } | 14 } |
27 | 15 |
28 void UpdateAnimeEntry(int id) { | 16 void UpdateAnimeEntry(int id) { |
29 switch (session.config.service) { | 17 switch (session.config.service) { |