diff --git a/forms/mainwindow.ui b/forms/mainwindow.ui
index d9d39058..fb9130fb 100644
--- a/forms/mainwindow.ui
+++ b/forms/mainwindow.ui
@@ -2661,6 +2661,7 @@
+
@@ -2733,6 +2734,14 @@
Use Poryscript
+
+
+ true
+
+
+ Open Recent Project On Launch
+
+
New Map...
diff --git a/include/mainwindow.h b/include/mainwindow.h
index e330a20d..1174060b 100644
--- a/include/mainwindow.h
+++ b/include/mainwindow.h
@@ -250,6 +250,7 @@ private slots:
void on_actionUse_Encounter_Json_triggered(bool checked);
void on_actionMonitor_Project_Files_triggered(bool checked);
void on_actionUse_Poryscript_triggered(bool checked);
+ void on_actionOpen_Recent_Project_On_Launch_triggered(bool checked);
void on_actionEdit_Shortcuts_triggered();
void on_mainTabBar_tabBarClicked(int index);
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 8ee883f9..71089327 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -461,6 +461,7 @@ void MainWindow::loadUserSettings() {
ui->horizontalSlider_MetatileZoom->setValue(porymapConfig.getMetatilesZoom());
ui->horizontalSlider_MetatileZoom->blockSignals(false);
ui->actionMonitor_Project_Files->setChecked(porymapConfig.getMonitorFiles());
+ ui->actionOpen_Recent_Project_On_Launch->setChecked(porymapConfig.getReopenOnLaunch());
setTheme(porymapConfig.getTheme());
}
@@ -1770,6 +1771,11 @@ void MainWindow::on_actionUse_Poryscript_triggered(bool checked)
projectConfig.setUsePoryScript(checked);
}
+void MainWindow::on_actionOpen_Recent_Project_On_Launch_triggered(bool checked)
+{
+ porymapConfig.setReopenOnLaunch(checked);
+}
+
void MainWindow::on_actionEdit_Shortcuts_triggered()
{
if (!shortcutsEditor)