Skip to content

Commit b55517c

Browse files
committed
left-align column, larger default window size
1 parent fff67e5 commit b55517c

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

source/form.fbp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
<property name="minimum_size">560,320</property>
4848
<property name="name">MainFrame</property>
4949
<property name="pos"></property>
50-
<property name="size">921,553</property>
50+
<property name="size">800,400</property>
5151
<property name="style">wxDEFAULT_FRAME_STYLE</property>
5252
<property name="subclass">; ; forward_declare</property>
5353
<property name="title">Unity Hub Native</property>
@@ -237,7 +237,7 @@
237237
<property name="resize">Resizable</property>
238238
<property name="show">1</property>
239239
<property name="size"></property>
240-
<property name="style">wxLC_REPORT|wxLC_SINGLE_SEL</property>
240+
<property name="style">wxLC_ALIGN_LEFT|wxLC_REPORT|wxLC_SINGLE_SEL</property>
241241
<property name="subclass">; ; forward_declare</property>
242242
<property name="toolbar_pane">0</property>
243243
<property name="tooltip"></property>

source/interface.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class MainFrame : public wxFrame
7474

7575
public:
7676

77-
MainFrame( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Unity Hub Native"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 921,553 ), long style = wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL );
77+
MainFrame( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Unity Hub Native"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 800,400 ), long style = wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL );
7878

7979
~MainFrame();
8080

source/interface_derived.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ MainFrameDerived::MainFrameDerived() : MainFrame(NULL){
6666
//set up project list columns
6767
{
6868
string cols[] = {"Project Name","Unity Version","Last Modified","Path"};
69-
for (string& str : cols){
70-
projectsList->AppendColumn(str,wxLIST_FORMAT_CENTER);
69+
for (const auto& str : cols){
70+
projectsList->AppendColumn(str,wxLIST_FORMAT_LEFT);
7171
}
7272
}
7373
//make the data folder if it does not already exist (with readwrite for all groups)
@@ -95,8 +95,6 @@ MainFrameDerived::MainFrameDerived() : MainFrame(NULL){
9595
//show current version in titlebar
9696
this->SetLabel("Unity Hub Native " + AppVersion);
9797

98-
this->Fit();
99-
10098
projSearchCtrl->SetFocus();
10199
}
102100

@@ -326,7 +324,7 @@ void MainFrameDerived::OpenProject(const long& index){
326324
//get the project
327325
project p = projects[index];
328326

329-
for (auto& path : installPaths) {
327+
for (const auto& path : installPaths) {
330328
auto editorPath = path / p.version / executable;
331329

332330
//check that the unity editor exists at that location

0 commit comments

Comments
 (0)