Add itch import

This commit is contained in:
kramo
2023-04-03 18:17:53 +02:00
parent a4c28449a7
commit f18894bf10
10 changed files with 226 additions and 39 deletions

View File

@@ -185,6 +185,21 @@ template PreferencesWindow : Adw.PreferencesWindow {
}
}
}
Adw.ExpanderRow itch_expander_row {
title: _("itch");
show-enable-switch: true;
Adw.ActionRow {
title: _("itch Install Location");
subtitle: _("Directory to use when importing games");
Button itch_file_chooser_button {
icon-name: "folder-symbolic";
valign: center;
}
}
}
}
}
}

View File

@@ -51,6 +51,12 @@
</key>
<key name="bottles-location" type="s">
<default>"~/.var/app/com.usebottles.bottles/data/bottles/"</default>
</key>
<key name="itch" type="b">
<default>true</default>
</key>
<key name="itch-location" type="s">
<default>"~/.var/app/io.itch.itch/config/itch/"</default>
</key>
</schema>
<schema id="hu.kramo.Cartridge.State" path="/hu/kramo/Cartridges/State/">