ability to not show monitor panel

pull/5/head
Zlatin Balevsky 2019-06-14 12:21:14 +01:00
parent 042d67d784
commit 0b4f261bc1
1 changed files with 3 additions and 1 deletions

View File

@ -41,6 +41,7 @@ class MainFrameView {
def lastDownloadSortEvent
void initUI() {
UISettings settings = application.context.get("ui-settings")
builder.with {
application(size : [1024,768], id: 'main-frame',
locationRelativeTo : null,
@ -63,6 +64,7 @@ class MainFrameView {
gridLayout(rows:1, cols: 2)
button(text: "Searches", actionPerformed : showSearchWindow)
button(text: "Uploads", actionPerformed : showUploadsWindow)
if (settings.showMonitor)
button(text: "Monitor", actionPerformed : showMonitorWindow)
button(text: "Trust", actionPerformed : showTrustWindow)
}