|
|
@ -18,7 +18,7 @@ public class ComponentReuseNotifyUtil { |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static void enterWidgetLibExtraAction() { |
|
|
|
public static void enterWidgetLibExtraAction(boolean needValidRead) { |
|
|
|
if (ComponentReuseNotificationInfo.getInstance().isClickedWidgetLib()) { |
|
|
|
if (ComponentReuseNotificationInfo.getInstance().isClickedWidgetLib()) { |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
@ -28,11 +28,12 @@ public class ComponentReuseNotifyUtil { |
|
|
|
return COMPONENT_SNAP_CHAT_KEY; |
|
|
|
return COMPONENT_SNAP_CHAT_KEY; |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
if (snapChat.hasRead()) { |
|
|
|
if (snapChat.hasRead() && needValidRead) { |
|
|
|
DesignerToastMsgUtil.toastPrompt(Toolkit.i18nText("Fine-Design_Component_Reuse_Merge_Prompt")); |
|
|
|
DesignerToastMsgUtil.toastPrompt(Toolkit.i18nText("Fine-Design_Component_Reuse_Merge_Prompt")); |
|
|
|
} |
|
|
|
} |
|
|
|
ComponentReuseNotificationInfo.getInstance().setClickedWidgetLib(true); |
|
|
|
ComponentReuseNotificationInfo.getInstance().setClickedWidgetLib(true); |
|
|
|
DesignerEnvManager.getEnvManager().saveXMLFile(); |
|
|
|
DesignerEnvManager.getEnvManager().saveXMLFile(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|