Skip to content

Commit d493f50

Browse files
UrtsiSantsivixalien
authored andcommitted
Use generic get_object
1 parent c533e28 commit d493f50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Select Folder/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ Gio._promisify(
1212
"select_multiple_folders_finish",
1313
);
1414

15-
const button_single = workbench.builder.get_object("button_single");
16-
const button_multiple = workbench.builder.get_object("button_multiple");
15+
const button_single = workbench.builder.get_object<Gtk.Button>("button_single");
16+
const button_multiple = workbench.builder.get_object<Gtk.Button>("button_multiple");
1717

1818
async function selectFolder() {
1919
const dialog_for_folder = new Gtk.FileDialog();

0 commit comments

Comments
 (0)