From ffc88b2303f71cdfe8c7696797b6cec623ad1156 Mon Sep 17 00:00:00 2001
From: Akira Ohgaki <akiraohgaki@gmail.com>
Date: Wed, 1 Mar 2017 15:01:46 +0900
Subject: [PATCH] Code cleanup

---
 app/qml/main.qml      | 7 ++++---
 app/qml/ui/Dialog.qml | 4 ++--
 2 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/app/qml/main.qml b/app/qml/main.qml
index 6bcbf14..2d63ab2 100644
--- a/app/qml/main.qml
+++ b/app/qml/main.qml
@@ -12,13 +12,14 @@ Window {
     id: app
 
     title: configHandler.getAppConfigApplication().name
+
+    visible: true
     width: 400
-    height: 200
     minimumWidth: 400
-    minimumHeight: 200
     maximumWidth: 800
+    height: 200
+    minimumHeight: 200
     maximumHeight: 400
-    visible: true
 
     function init() {
         var metadata = ocsUrlHandler.metadata();
diff --git a/app/qml/ui/Dialog.qml b/app/qml/ui/Dialog.qml
index 8ccee74..4c0358f 100644
--- a/app/qml/ui/Dialog.qml
+++ b/app/qml/ui/Dialog.qml
@@ -5,10 +5,10 @@ import QtQuick.Controls 1.0
 ColumnLayout {
     id: dialog
 
+    visible: false
     anchors.fill: parent
     anchors.margins: 12
     spacing: 8
-    visible: false
 
     property alias icon: icon.source
     property alias primaryText: primaryText.text
@@ -33,9 +33,9 @@ ColumnLayout {
         Image {
             id: icon
             source: ""
+            visible: source.toString() ? true : false
             Layout.preferredWidth: 32
             Layout.preferredHeight: 32
-            visible: source.toString() ? true : false
         }
         ColumnLayout {
             Layout.fillWidth: true
-- 
GitLab