mirror of
https://github.com/TimeCrafters/timecrafters_configuration_tool_desktop.git
synced 2025-12-16 13:52:34 +00:00
Fixed Variable dialog erroneously saying that a valid type was invalid, removed old states and renamed NewEditor to Editor, updated dialogs with 2 side-by-side buttons to use 0.5 instead of 0.475 dynamic width, removed manual newlines in dialogs since TextBlock now supports word wrap.
This commit is contained in:
@@ -15,14 +15,14 @@ module TAC
|
||||
end
|
||||
|
||||
flow width: 1.0, margin_top: THEME_DIALOG_BUTTON_PADDING do
|
||||
button "Cancel", width: 0.475 do
|
||||
button "Cancel", width: 0.5 do
|
||||
close
|
||||
end
|
||||
|
||||
accept_label = @options[:renaming] ? "Update" : "Add"
|
||||
accept_label = @options[:accept_label] if @options[:accept_label]
|
||||
|
||||
button accept_label, width: 0.475 do
|
||||
button accept_label, width: 0.5 do
|
||||
try_commit
|
||||
end
|
||||
end
|
||||
@@ -44,7 +44,7 @@ module TAC
|
||||
name = @name.value.strip
|
||||
|
||||
if @name.value.strip.empty?
|
||||
@name_error.value = "Name cannot be blank.\nName cannot only be whitespace."
|
||||
@name_error.value = "Name cannot be blank. Name cannot only be whitespace."
|
||||
@name_error.show
|
||||
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user