mirror of
https://github.com/huderlem/porymap.git
synced 2026-04-25 07:18:02 -05:00
disable ui when no project is open (closes #281)
This commit is contained in:
parent
3312280287
commit
1575d3f799
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user