Minor tweaks
This commit is contained in:
parent
2eed1a7207
commit
4709afd878
@ -241,7 +241,9 @@ class Connection_Manager extends \wxFrame {
|
||||
|
||||
$types = $this->get_available_dbs();
|
||||
$type_id = $fields['Database Type']->GetSelection();
|
||||
$type = $types[$type_id];
|
||||
$type = (isset($types[$type_id]))
|
||||
? $types[$type_id]
|
||||
: "";
|
||||
|
||||
$params->name = $fields['Connection Name']->GetValue();
|
||||
$params->type = $type;
|
||||
|
@ -51,8 +51,7 @@ class Main extends \wxFrame {
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct(NULL, NULL, PROGRAM_NAME, \wxDefaultPosition, new \wxSize(800, 600));
|
||||
|
||||
parent::__construct(NULL, NULL, PROGRAM_NAME, \wxDefaultPosition,new \wxSize(800, 480));
|
||||
$this->_create_menu();
|
||||
|
||||
$sbar = $this->CreateStatusBar(2);
|
||||
@ -62,7 +61,6 @@ class Main extends \wxFrame {
|
||||
|
||||
// Layout the interface
|
||||
$this->_main_layout();
|
||||
$this->SetThemeEnabled(TRUE);
|
||||
$this->CenterOnScreen(wxBOTH);
|
||||
}
|
||||
|
||||
@ -151,7 +149,7 @@ class Main extends \wxFrame {
|
||||
/**
|
||||
* Create the menu for the program
|
||||
*
|
||||
* @return GtkMenuBar
|
||||
* @return void
|
||||
*/
|
||||
private function _create_menu()
|
||||
{
|
||||
@ -186,4 +184,5 @@ class Main extends \wxFrame {
|
||||
$this->SetMenuBar($menu_bar);
|
||||
}
|
||||
}
|
||||
|
||||
// End of main.php
|
Reference in New Issue
Block a user