Update FileChooser.ts (#193)

Made theme open file chooser start at themes dir
This commit is contained in:
ItsTerminal
2024-08-26 09:26:29 +01:00
committed by GitHub
parent fc2b781673
commit f188e23967

View File

@@ -181,7 +181,7 @@ export const importFiles = (themeOnly: boolean = false): void => {
title: `Import ${themeOnly ? "Theme" : "Config"}`, title: `Import ${themeOnly ? "Theme" : "Config"}`,
action: Gtk.FileChooserAction.OPEN, action: Gtk.FileChooserAction.OPEN,
}); });
dialog.set_current_folder(`${App.configDir}/themes`)
dialog.add_button(Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL); dialog.add_button(Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL);
dialog.add_button(Gtk.STOCK_OPEN, Gtk.ResponseType.ACCEPT); dialog.add_button(Gtk.STOCK_OPEN, Gtk.ResponseType.ACCEPT);