diff options
author | swirl <swurl@swurl.xyz> | 2022-01-14 18:30:02 -0500 |
---|---|---|
committer | swirl <swurl@swurl.xyz> | 2022-01-14 18:30:02 -0500 |
commit | a606b47a22443cefc52d865df24c45ff50908f6f (patch) | |
tree | a489ad3137a4729999846315f24b223b01356e7d | |
parent | a62155c1c9e561327cc589fe3da7b6d5a107d58d (diff) | |
download | PrismLauncher-a606b47a22443cefc52d865df24c45ff50908f6f.tar.gz PrismLauncher-a606b47a22443cefc52d865df24c45ff50908f6f.tar.bz2 PrismLauncher-a606b47a22443cefc52d865df24c45ff50908f6f.zip |
pastebin URL app setting
-rw-r--r-- | launcher/Application.cpp | 4 | ||||
-rw-r--r-- | launcher/ui/pages/global/PastePage.cpp | 13 | ||||
-rw-r--r-- | launcher/ui/pages/global/PastePage.ui | 2 |
3 files changed, 6 insertions, 13 deletions
diff --git a/launcher/Application.cpp b/launcher/Application.cpp index 98e3e0fc..110b2e6b 100644 --- a/launcher/Application.cpp +++ b/launcher/Application.cpp @@ -714,8 +714,8 @@ Application::Application(int &argc, char **argv) : QApplication(argc, argv) m_settings->registerSetting("UpdateDialogGeometry", ""); - // paste.ee API key - m_settings->registerSetting("PasteEEAPIKey", "multimc"); + // pastebin URL + m_settings->registerSetting("PastebinURL", "0x0.st"); // Init page provider { diff --git a/launcher/ui/pages/global/PastePage.cpp b/launcher/ui/pages/global/PastePage.cpp index 3378a6ef..495e9937 100644 --- a/launcher/ui/pages/global/PastePage.cpp +++ b/launcher/ui/pages/global/PastePage.cpp @@ -43,16 +43,9 @@ PastePage::~PastePage() void PastePage::loadSettings() { auto s = APPLICATION->settings(); - QString keyToUse = s->get("PasteEEAPIKey").toString(); - if(keyToUse == "multimc") - { - ui->multimcButton->setChecked(true); - } - else - { - ui->customButton->setChecked(true); - ui->customAPIkeyEdit->setText(keyToUse); - } + QString pastebin = s->get("PastebinURL"); + int index = ui->urlChoices->findText(pastebin); + ui->urlChoices->setCurrentIndex(index); } void PastePage::applySettings() diff --git a/launcher/ui/pages/global/PastePage.ui b/launcher/ui/pages/global/PastePage.ui index 0bef5a22..784ea3f4 100644 --- a/launcher/ui/pages/global/PastePage.ui +++ b/launcher/ui/pages/global/PastePage.ui @@ -47,7 +47,7 @@ </widget> </item> <item> - <widget class="QComboBox" name="comboBox"> + <widget class="QComboBox" name="urlChoices"> <item> <property name="text"> <string>0x0.st</string> |