Skip to content

Commit 0870525

Browse files
committed
Merge pull request #109919 from KoBeWi/you_have_no_duplicate_here
Show simple dialog when there are no Resources to duplicate
2 parents ba3b024 + 4df9eee commit 0870525

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

editor/docks/inspector_dock.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,7 @@ void InspectorDock::_menu_option_confirm(int p_option, bool p_confirmed) {
161161
unique_resources_confirmation->popup_centered();
162162
} else {
163163
current_option = -1;
164-
unique_resources_label->set_text(TTRC("This object has no resources."));
165-
unique_resources_confirmation->popup_centered();
164+
EditorNode::get_singleton()->show_warning(TTR("This object has no resources to duplicate."));
166165
}
167166
} else {
168167
editor_data->apply_changes_in_editors();

0 commit comments

Comments
 (0)