forked from cwtch.im/cwtch-ui
Hide Translate Button when not configured
This commit is contained in:
parent
f74be2947d
commit
d7cd4a9374
|
@ -128,9 +128,8 @@ class MessageRowState extends State<MessageRow> with SingleTickerProviderStateMi
|
||||||
: Visibility(
|
: Visibility(
|
||||||
visible: Provider.of<FlwtchState>(context, listen: false).cwtch.IsBlodeuweddSupported() &&
|
visible: Provider.of<FlwtchState>(context, listen: false).cwtch.IsBlodeuweddSupported() &&
|
||||||
Provider.of<Settings>(context).isExperimentEnabled(BlodeuweddExperiment) &&
|
Provider.of<Settings>(context).isExperimentEnabled(BlodeuweddExperiment) &&
|
||||||
EnvironmentConfig.TEST_MODE ||
|
(EnvironmentConfig.TEST_MODE || Provider.of<AppState>(context).hoveredIndex == Provider.of<MessageMetadata>(context).messageID),
|
||||||
Provider.of<AppState>(context).hoveredIndex == Provider.of<MessageMetadata>(context).messageID,
|
maintainSize: false,
|
||||||
maintainSize: true,
|
|
||||||
maintainAnimation: true,
|
maintainAnimation: true,
|
||||||
maintainState: true,
|
maintainState: true,
|
||||||
maintainInteractivity: false,
|
maintainInteractivity: false,
|
||||||
|
|
Loading…
Reference in New Issue