testTool: Fix a typo causing the overwrite flag not to be applied
Marco Trevisan (TreviƱo)
2 years ago
61 | 61 | let newName = `${iconName}-${Math.floor(Math.random() * 100)}.${extension}`; |
62 | 62 | let newFile = Gio.File.new_for_path( |
63 | 63 | `${GLib.dir_make_tmp('indicator-test-XXXXXX')}/${newName}`); |
64 | iconFile.copy(newFile, Gio.FileCopyFlagsOVERWRITE, null, null); | |
64 | iconFile.copy(newFile, Gio.FileCopyFlags.OVERWRITE, null, null); | |
65 | 65 | |
66 | 66 | indicator.set_icon_theme_path(newFile.get_parent().get_path()); |
67 | 67 | indicator.set_icon(newFile.get_basename()); |