File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -32,15 +32,11 @@ function settings_new_id(schema_id: string): Settings | null {
3232
3333function settings_new_schema ( schema : string ) : Settings {
3434 const GioSSS = Gio . SettingsSchemaSource ;
35- // const schemaDir = Me.dir .get_child('schemas');
35+ const schemaDir = Gio . File . new_for_path ( get_current_path ( ) ) . get_child ( 'schemas' ) ;
3636
37- // let schemaSource = schemaDir.query_exists(null)
38- // ? GioSSS.new_from_directory(get_current_path(), GioSSS.get_default(), false)
39- // : GioSSS.get_default();
40-
41- // get_current_path()
42-
43- let schemaSource = GioSSS . new_from_directory ( `${ get_current_path ( ) } /schemas/` , GioSSS . get_default ( ) , false ) ;
37+ let schemaSource = schemaDir . query_exists ( null )
38+ ? GioSSS . new_from_directory ( schemaDir . get_path ( ) , GioSSS . get_default ( ) , false )
39+ : GioSSS . get_default ( ) ;
4440
4541 const schemaObj = schemaSource . lookup ( schema , true ) ;
4642
You can’t perform that action at this time.
0 commit comments