mirror of
https://github.com/huderlem/porymap.git
synced 2026-09-08 17:05:43 -05:00
disable ui when no project is open (closes #281)
This commit is contained in:
@@ -71,6 +71,9 @@ void MainWindow::initWindow() {
|
||||
this->initMiscHeapObjects();
|
||||
this->initMapSortOrder();
|
||||
this->restoreWindowState();
|
||||
|
||||
setDisabled(true);
|
||||
ui->menuFile->setDisabled(false);
|
||||
}
|
||||
|
||||
void MainWindow::initExtraShortcuts() {
|
||||
@@ -370,6 +373,8 @@ bool MainWindow::openProject(QString dir) {
|
||||
Scripting::cb_ProjectOpened(dir);
|
||||
}
|
||||
|
||||
setDisabled(false);
|
||||
|
||||
return success;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user