Remove old macOS data migration code

This commit is contained in:
Kenneth Chew
2022-04-25 19:57:47 -04:00
parent aad7c63282
commit ac405aa564
4 changed files with 0 additions and 85 deletions

View File

@ -97,13 +97,6 @@ LauncherPage::LauncherPage(QWidget *parent) : QWidget(parent), ui(new Ui::Launch
}
connect(ui->fontSizeBox, SIGNAL(valueChanged(int)), SLOT(refreshFontPreview()));
connect(ui->consoleFont, SIGNAL(currentFontChanged(QFont)), SLOT(refreshFontPreview()));
//move mac data button
QFile file(QDir::current().absolutePath() + "/dontmovemacdata");
if (!file.exists())
{
ui->migrateDataFolderMacBtn->setVisible(false);
}
}
LauncherPage::~LauncherPage()
@ -190,13 +183,6 @@ void LauncherPage::on_modsDirBrowseBtn_clicked()
ui->modsDirTextBox->setText(cooked_dir);
}
}
void LauncherPage::on_migrateDataFolderMacBtn_clicked()
{
QFile file(QDir::current().absolutePath() + "/dontmovemacdata");
file.remove();
QProcess::startDetached(qApp->arguments()[0]);
qApp->quit();
}
void LauncherPage::refreshUpdateChannelList()
{

View File

@ -88,7 +88,6 @@ slots:
void on_instDirBrowseBtn_clicked();
void on_modsDirBrowseBtn_clicked();
void on_iconsDirBrowseBtn_clicked();
void on_migrateDataFolderMacBtn_clicked();
/*!
* Updates the list of update channels in the combo box.

View File

@ -157,13 +157,6 @@
</layout>
</widget>
</item>
<item>
<widget class="QPushButton" name="migrateDataFolderMacBtn">
<property name="text">
<string>Move the data to new location (will restart the launcher)</string>
</property>
</widget>
</item>
<item>
<spacer name="verticalSpacer_2">
<property name="orientation">