remove public option
This commit is contained in:
parent
4d54d2662a
commit
ced67a7400
@ -43,11 +43,7 @@ void PasteEEPage::loadSettings()
|
|||||||
{
|
{
|
||||||
auto s = MMC->settings();
|
auto s = MMC->settings();
|
||||||
QString keyToUse = s->get("PasteEEAPIKey").toString();
|
QString keyToUse = s->get("PasteEEAPIKey").toString();
|
||||||
if(keyToUse == "public")
|
if(keyToUse == "multimc")
|
||||||
{
|
|
||||||
ui->publicButton->setChecked(true);
|
|
||||||
}
|
|
||||||
else if(keyToUse == "multimc")
|
|
||||||
{
|
{
|
||||||
ui->multimcButton->setChecked(true);
|
ui->multimcButton->setChecked(true);
|
||||||
}
|
}
|
||||||
@ -65,8 +61,6 @@ void PasteEEPage::applySettings()
|
|||||||
QString pasteKeyToUse;
|
QString pasteKeyToUse;
|
||||||
if (ui->customButton->isChecked())
|
if (ui->customButton->isChecked())
|
||||||
pasteKeyToUse = ui->customAPIkeyEdit->text();
|
pasteKeyToUse = ui->customAPIkeyEdit->text();
|
||||||
else if (ui->publicButton->isChecked())
|
|
||||||
pasteKeyToUse = "public";
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
pasteKeyToUse = "multimc";
|
pasteKeyToUse = "multimc";
|
||||||
|
@ -39,16 +39,6 @@
|
|||||||
<string>paste.ee API key</string>
|
<string>paste.ee API key</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_10">
|
<layout class="QVBoxLayout" name="verticalLayout_10">
|
||||||
<item>
|
|
||||||
<widget class="QRadioButton" name="publicButton">
|
|
||||||
<property name="text">
|
|
||||||
<string>No key - &2MB upload limit</string>
|
|
||||||
</property>
|
|
||||||
<attribute name="buttonGroup">
|
|
||||||
<string notr="true">pasteButtonGroup</string>
|
|
||||||
</attribute>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
<item>
|
||||||
<widget class="QRadioButton" name="multimcButton">
|
<widget class="QRadioButton" name="multimcButton">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
|
Loading…
Reference in New Issue
Block a user