Skip to content

Commit

Permalink
Table details page fails if no ROM could be detected, fixes #108
Browse files Browse the repository at this point in the history
  • Loading branch information
Markus Kalkbrenner committed Apr 16, 2020
1 parent a9666f1 commit 1bc3737
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build/DOFConfigtoolClient.iss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

#define MyAppName "DOF Configtool Client"
#define MyAppVersion "0.6.5-beta.2"
#define MyAppVersion "0.6.5-beta.3"
#define MyAppPublisher "MK47"
#define MyAppURL "https://github.com/mkalkbrenner/dof_configtool_client"
#define MyAppExeName "DOFConfigtoolClient.exe"
Expand Down
2 changes: 1 addition & 1 deletion public/console.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Symfony\Component\Console\Input\ArgvInput;
use Symfony\Component\Debug\Debug;

define('DOFCTC_VERSION', '0.6.5-beta.2');
define('DOFCTC_VERSION', '0.6.5-beta.3');

if (!in_array(PHP_SAPI, ['cli', 'phpdbg', 'embed'], true)) {
echo 'Warning: The console should be invoked via the CLI version of PHP, not the '.PHP_SAPI.' SAPI'.PHP_EOL;
Expand Down
2 changes: 1 addition & 1 deletion public/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
use Symfony\Component\Debug\Debug;
use Symfony\Component\HttpFoundation\Request;

define('DOFCTC_VERSION', '0.6.5-beta.2');
define('DOFCTC_VERSION', '0.6.5-beta.3');

require dirname(__DIR__).'/config/bootstrap.php';

Expand Down
10 changes: 10 additions & 0 deletions src/Controller/TablesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,16 @@ public function table(Request $request, string $hash, string $selected_rom)
->add('b2s_table_setting', B2STableSettingDisabledType::class, [
'data' => new B2STableSetting('default'),
'label' => false,
])
->add('dmddevice_virtualdmd', TextType::class, [
'disabled' => true,
'data' => 'Select ROM first.',
'label' => false,
])
->add('dmddevice_alphanumeric', TextType::class, [
'disabled' => true,
'data' => 'Select ROM first.',
'label' => false,
]);
}

Expand Down

0 comments on commit 1bc3737

Please sign in to comment.