Skip to content

Commit 135f374

Browse files
committed
prefs can fail graphically, so handle them graphically
1 parent 8b26d2a commit 135f374

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/arduino_ci/arduino_cmd.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,7 @@ def prefs
5858
# @param value [String] the preference value
5959
# @return [bool] whether the command succeeded
6060
def set_pref(key, value)
61-
resp = run_and_capture(" about preferences", "--pref", "#{key}=#{value}", "--save-prefs")
62-
success = resp[:success]
61+
success = run_with_gui_guess(" about preferences", "--pref", "#{key}=#{value}", "--save-prefs")
6362
@prefs_cache[key] = value if success
6463
success
6564
end

0 commit comments

Comments
 (0)