mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 23:38:59 +08:00
Make opacity depend on enabled
Simplifies the code a bit. Contributes to issue CURA-5128.
This commit is contained in:
parent
e8491b4a83
commit
8a36f1e074
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2017 Ultimaker B.V.
|
||||
// Copyright (c) 2018 Ultimaker B.V.
|
||||
// PluginBrowser is released under the terms of the LGPLv3 or higher.
|
||||
|
||||
import QtQuick 2.2
|
||||
@ -140,17 +140,7 @@ Component {
|
||||
return true
|
||||
}
|
||||
}
|
||||
opacity:
|
||||
{
|
||||
if ( pluginList.activePlugin == model )
|
||||
{
|
||||
return 1.0
|
||||
}
|
||||
else
|
||||
{
|
||||
manager.isDownloading ? 0.5 : 1.0
|
||||
}
|
||||
}
|
||||
opacity: enabled ? 1.0 : 0.5
|
||||
visible: model.external && ((model.status !== "installed") || model.can_upgrade)
|
||||
style: ButtonStyle {
|
||||
background: Rectangle {
|
||||
|
Loading…
x
Reference in New Issue
Block a user