diff options
| author | LostDragonist <lost.dragonist@gmail.com> | 2019-09-16 16:32:37 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-09-16 16:32:37 -0500 |
| commit | 0d6eb8bd4ce37ebf9efb1436d401efbcc9ffa440 (patch) | |
| tree | 06ed754185e3b1dbbfe09563ca4a0499cc5aace7 /src/mainwindow.cpp | |
| parent | 99fdbb2539227cec4fab534efc7420cfc5ca1a92 (diff) | |
| parent | 4d9c1db885bd3ab230440b25e70dcd8049cf4650 (diff) | |
Merge pull request #831 from LostDragonist/portable_lock
Add portable lock feature
Diffstat (limited to 'src/mainwindow.cpp')
| -rw-r--r-- | src/mainwindow.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 657c1a27..bd9f1486 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -727,6 +727,10 @@ void MainWindow::setupToolbar() } else { log::warn("no separator found on the toolbar, icons won't be right-aligned"); } + + if (!InstanceManager::instance().allowedToChangeInstance()) { + ui->actionChange_Game->setVisible(false); + } } void MainWindow::setupActionMenu(QAction* a) |
