pastebin URL app setting
This commit is contained in:
parent
a62155c1c9
commit
a606b47a22
@ -714,8 +714,8 @@ Application::Application(int &argc, char **argv) : QApplication(argc, argv)
|
|||||||
|
|
||||||
m_settings->registerSetting("UpdateDialogGeometry", "");
|
m_settings->registerSetting("UpdateDialogGeometry", "");
|
||||||
|
|
||||||
// paste.ee API key
|
// pastebin URL
|
||||||
m_settings->registerSetting("PasteEEAPIKey", "multimc");
|
m_settings->registerSetting("PastebinURL", "0x0.st");
|
||||||
|
|
||||||
// Init page provider
|
// Init page provider
|
||||||
{
|
{
|
||||||
|
@ -43,16 +43,9 @@ PastePage::~PastePage()
|
|||||||
void PastePage::loadSettings()
|
void PastePage::loadSettings()
|
||||||
{
|
{
|
||||||
auto s = APPLICATION->settings();
|
auto s = APPLICATION->settings();
|
||||||
QString keyToUse = s->get("PasteEEAPIKey").toString();
|
QString pastebin = s->get("PastebinURL");
|
||||||
if(keyToUse == "multimc")
|
int index = ui->urlChoices->findText(pastebin);
|
||||||
{
|
ui->urlChoices->setCurrentIndex(index);
|
||||||
ui->multimcButton->setChecked(true);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
ui->customButton->setChecked(true);
|
|
||||||
ui->customAPIkeyEdit->setText(keyToUse);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void PastePage::applySettings()
|
void PastePage::applySettings()
|
||||||
|
@ -47,7 +47,7 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QComboBox" name="comboBox">
|
<widget class="QComboBox" name="urlChoices">
|
||||||
<item>
|
<item>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>0x0.st</string>
|
<string>0x0.st</string>
|
||||||
|
Loading…
Reference in New Issue
Block a user