mirror of
https://github.com/an-anime-team/sleepy-launcher.git
synced 2025-03-15 14:38:29 +03:00
feat: added launcher auto-close option
This commit is contained in:
parent
d6208ee6de
commit
5d1473a6f2
14 changed files with 59 additions and 3 deletions
4
Cargo.lock
generated
4
Cargo.lock
generated
|
@ -87,8 +87,8 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "anime-launcher-sdk"
|
||||
version = "1.8.9"
|
||||
source = "git+https://github.com/an-anime-team/anime-launcher-sdk?tag=1.8.9#372fbac7a4b9c79452e180e472c6fd35cf38fb2e"
|
||||
version = "1.8.10"
|
||||
source = "git+https://github.com/an-anime-team/anime-launcher-sdk?tag=1.8.10#244720cc4b518f0c64ded3233b863f407beb05f8"
|
||||
dependencies = [
|
||||
"anime-game-core",
|
||||
"anyhow",
|
||||
|
|
|
@ -17,7 +17,7 @@ glib-build-tools = "0.17"
|
|||
|
||||
[dependencies.anime-launcher-sdk]
|
||||
git = "https://github.com/an-anime-team/anime-launcher-sdk"
|
||||
tag = "1.8.9"
|
||||
tag = "1.8.10"
|
||||
features = ["all", "genshin", "genshin-patch"]
|
||||
|
||||
# path = "../anime-launcher-sdk" # ! for dev purposes only
|
||||
|
|
|
@ -58,6 +58,9 @@ disable-mhypbase-description = Experimentell. Wenn sie diese option aktivieren,
|
|||
ask-superuser-permissions = Superuser-Berechtigungen anfordern
|
||||
ask-superuser-permissions-description = Launcher benötigt Superuser-Zugriff, um Ihre Hosts-Datei automatisch zu aktualisieren. Dies ist in der Flatpak-Edition nicht erforderlich
|
||||
|
||||
auto-close-launcher = Auto-close launcher
|
||||
auto-close-launcher-description = Close the launcher after the game is closed
|
||||
|
||||
wine-tools = Wine-Tools
|
||||
command-line = Befehlszeile
|
||||
registry-editor = Registrierungs-Editor
|
||||
|
|
|
@ -58,6 +58,9 @@ disable-mhypbase-description = Experimental. If enabled, launcher will disable m
|
|||
ask-superuser-permissions = Ask superuser permissions
|
||||
ask-superuser-permissions-description = Launcher will use them to automatically update your hosts file. This is not needed in flatpak edition
|
||||
|
||||
auto-close-launcher = Auto-close launcher
|
||||
auto-close-launcher-description = Close the launcher after the game is closed
|
||||
|
||||
wine-tools = Wine tools
|
||||
command-line = Command line
|
||||
registry-editor = Registry editor
|
||||
|
|
|
@ -58,6 +58,9 @@ disable-mhypbase-description = Experimental. Si se activa, el launcher desactiva
|
|||
ask-superuser-permissions = Pedir permisos de superusuario
|
||||
ask-superuser-permissions-description = El launcher usará los permisos para actualizar automáticamente tu archivo hosts. Esto no es necesario en la versión de Flatpak
|
||||
|
||||
auto-close-launcher = Auto-close launcher
|
||||
auto-close-launcher-description = Close the launcher after the game is closed
|
||||
|
||||
wine-tools = Herramientas de Wine
|
||||
command-line = Línea de Comandos
|
||||
registry-editor = Editor del Registro
|
||||
|
|
|
@ -58,6 +58,9 @@ disable-mhypbase-description = Experimental. If enabled, launcher will disable m
|
|||
ask-superuser-permissions = Ask superuser permissions
|
||||
ask-superuser-permissions-description = Launcher will use them to automatically update your hosts file. This is not needed in flatpak edition
|
||||
|
||||
auto-close-launcher = Auto-close launcher
|
||||
auto-close-launcher-description = Close the launcher after the game is closed
|
||||
|
||||
wine-tools = Wine tools
|
||||
command-line = Command line
|
||||
registry-editor = Registry editor
|
||||
|
|
|
@ -58,6 +58,9 @@ disable-mhypbase-description = Tesztelés alatt. Ha bekapcsolod, kikapcsolja a m
|
|||
ask-superuser-permissions = Superuser engedély kérése
|
||||
ask-superuser-permissions-description = A Launcher autómatikusan használni fogja hogy frissítse a hosts fájlodat. A Flatpak verzióhoz nem kell
|
||||
|
||||
auto-close-launcher = Auto-close launcher
|
||||
auto-close-launcher-description = Close the launcher after the game is closed
|
||||
|
||||
wine-tools = Wine eszközök
|
||||
command-line = Parancssor
|
||||
registry-editor = Registry szerksztő
|
||||
|
|
|
@ -58,6 +58,9 @@ disable-mhypbase-description = Masih dalam pengujicobaan. Jika diaktifkan, launc
|
|||
ask-superuser-permissions = Minta izin dari admin
|
||||
ask-superuser-permissions-description = Launcher akan otomatis memperbarui file hosts Anda. Opsi ini tidak diperlukan jika Anda memakai edisi flatpak
|
||||
|
||||
auto-close-launcher = Auto-close launcher
|
||||
auto-close-launcher-description = Close the launcher after the game is closed
|
||||
|
||||
wine-tools = Peralatan wine
|
||||
command-line = Command line
|
||||
registry-editor = Editor registry
|
||||
|
|
|
@ -58,6 +58,9 @@ disable-mhypbase-description = Sperimentale. Se abiliata, il launcher disabilite
|
|||
ask-superuser-permissions = Chiedi permessi di amministratore
|
||||
ask-superuser-permissions-description = Il launcher li userà per aggiornare automaticamente il tuo file hosts. Questo non è necessario nell'edizione flatpak
|
||||
|
||||
auto-close-launcher = Auto-close launcher
|
||||
auto-close-launcher-description = Close the launcher after the game is closed
|
||||
|
||||
wine-tools = Strumenti di Wine
|
||||
command-line = Linea di comando
|
||||
registry-editor = Editor del Registro
|
||||
|
|
|
@ -58,6 +58,9 @@ disable-mhypbase-description = 試験的です。有効にすると、ランチ
|
|||
ask-superuser-permissions = スーパーユーザーを尋ねる。
|
||||
ask-superuser-permissions-description = あなたのホストのファイルを自動更新するために、 これらを利用します。flatpak版では必要ありません。
|
||||
|
||||
auto-close-launcher = Auto-close launcher
|
||||
auto-close-launcher-description = Close the launcher after the game is closed
|
||||
|
||||
wine-tools = ワインツール
|
||||
command-line = コマンドライン
|
||||
registry-editor = レジストリエディタ
|
||||
|
|
|
@ -58,6 +58,9 @@ disable-mhypbase-description = Экспериментально. Когда вк
|
|||
ask-superuser-permissions = Запрашивать права суперпользователя
|
||||
ask-superuser-permissions-description = Лаунчер будет использовать их чтобы автоматически обновлять ваш hosts файл для отключения телеметрии игры. Не требуется при использовании flatpak
|
||||
|
||||
auto-close-launcher = Автоматически закрывать лаунчер
|
||||
auto-close-launcher-description = Закрывать лаунчер после выхода из игры
|
||||
|
||||
wine-tools = Инструменты Wine
|
||||
command-line = Коммандная строка
|
||||
registry-editor = Редактор реестра
|
||||
|
|
|
@ -58,6 +58,9 @@ disable-mhypbase-description = Deneysel. Etkinleştirilirse, istemci ana yamayı
|
|||
ask-superuser-permissions = Yönetici izinlerini sor
|
||||
ask-superuser-permissions-description = İstemci yönetici iznini hostunuzun dosyalarını güncellemek için otomatik olarak kullanacaktır. Buna flatpak versiyonunda gerek yoktur
|
||||
|
||||
auto-close-launcher = Auto-close launcher
|
||||
auto-close-launcher-description = Close the launcher after the game is closed
|
||||
|
||||
wine-tools = Wine araçları
|
||||
command-line = Komut istemi
|
||||
registry-editor = Girdi düzenleyicisi
|
||||
|
|
|
@ -58,6 +58,9 @@ disable-mhypbase-description = 实验性功能。启用此选项后,启动器
|
|||
ask-superuser-permissions = 请求超级用户权限
|
||||
ask-superuser-permissions-description = 启动器需要超级用户权限来修改 hosts 文件。Flatpak 版无需此权限
|
||||
|
||||
auto-close-launcher = Auto-close launcher
|
||||
auto-close-launcher-description = Close the launcher after the game is closed
|
||||
|
||||
wine-tools = Wine 工具
|
||||
command-line = 命令行
|
||||
registry-editor = 注册表编辑器
|
||||
|
|
|
@ -576,6 +576,29 @@ impl SimpleAsyncComponent for GeneralApp {
|
|||
add = &adw::PreferencesGroup {
|
||||
set_title: &tr("options"),
|
||||
|
||||
adw::ActionRow {
|
||||
set_title: &tr("auto-close-launcher"),
|
||||
set_subtitle: &tr("auto-close-launcher-description"),
|
||||
|
||||
add_suffix = >k::Switch {
|
||||
set_valign: gtk::Align::Center,
|
||||
|
||||
set_state: CONFIG.launcher.auto_close,
|
||||
|
||||
connect_state_notify => |switch| {
|
||||
if is_ready() {
|
||||
if let Ok(mut config) = Config::get() {
|
||||
config.launcher.auto_close = switch.state();
|
||||
|
||||
Config::update(config);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
add = &adw::PreferencesGroup {
|
||||
adw::ActionRow {
|
||||
set_title: &tr("components"),
|
||||
set_subtitle: &tr("components-description"),
|
||||
|
|
Loading…
Add table
Reference in a new issue