Skip to content

Commit e2be86c

Browse files
committed
Hide Manage button on Linux
interface.cpp, interface.h, forms.fpb ~ manage button is protected interface_derived.cpp ~ hide Manage button on linux
1 parent c896b39 commit e2be86c

File tree

4 files changed

+3
-2
lines changed

4 files changed

+3
-2
lines changed

source/form.fbp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1171,7 +1171,7 @@
11711171
<property name="pane_border">1</property>
11721172
<property name="pane_position"></property>
11731173
<property name="pane_size"></property>
1174-
<property name="permission">none</property>
1174+
<property name="permission">protected</property>
11751175
<property name="pin_button">1</property>
11761176
<property name="pos"></property>
11771177
<property name="position"></property>

source/interface.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ MainFrame::MainFrame( wxWindow* parent, wxWindowID id, const wxString& title, co
105105
wxBoxSizer* bSizer5;
106106
bSizer5 = new wxBoxSizer( wxVERTICAL );
107107

108-
wxButton* launchHubBtn;
109108
launchHubBtn = new wxButton( installs_pane, wxID_BACKWARD, wxT("Manage"), wxDefaultPosition, wxDefaultSize, 0 );
110109
bSizer5->Add( launchHubBtn, 0, wxALL|wxEXPAND, 5 );
111110

source/interface.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ class MainFrame : public wxFrame
5858
wxListCtrl* projectsList;
5959
wxListBox* installsList;
6060
wxListBox* installsPathsList;
61+
wxButton* launchHubBtn;
6162
wxPanel* learn_pane;
6263
wxGridBagSizer* learnSizer;
6364
wxButton* backBtn;

source/interface_derived.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ MainFrameDerived::MainFrameDerived() : MainFrame(NULL){
9090
#elif defined __linux__
9191
//hide the learn tab on Linux
9292
notebook->DeletePage(notebook->GetPageCount() - 1);
93+
launchHubBtn->Hide();
9394
#endif
9495
//show current version in titlebar
9596
this->SetLabel("Unity Hub Native " + AppVersion);

0 commit comments

Comments
 (0)