mirror of
https://github.com/an-anime-team/sleepy-launcher.git
synced 2025-03-15 06:28:27 +03:00
Added ability to run the game when all patch servers are down
This commit is contained in:
parent
a1cdf81eca
commit
59b50afa63
1 changed files with 12 additions and 1 deletions
|
@ -271,6 +271,7 @@ impl App {
|
|||
match config::get() {
|
||||
Ok(mut config) => {
|
||||
match state {
|
||||
LauncherState::PatchAvailable(Patch::NotAvailable) |
|
||||
LauncherState::Launch => {
|
||||
let this = this.clone();
|
||||
|
||||
|
@ -767,12 +768,22 @@ impl App {
|
|||
|
||||
LauncherState::PatchAvailable(patch) => {
|
||||
match patch {
|
||||
Patch::NotAvailable |
|
||||
Patch::NotAvailable => {
|
||||
self.widgets.launch_game.set_label("Patch not available");
|
||||
|
||||
self.widgets.launch_game.set_tooltip_text(Some("Patch servers are unavailable and launcher can't verify the game's patching status. You're allowed to run the game on your own risk"));
|
||||
|
||||
self.widgets.launch_game.remove_css_class("suggested-action");
|
||||
self.widgets.launch_game.add_css_class("destructive-action");
|
||||
}
|
||||
|
||||
Patch::Outdated { .. } |
|
||||
Patch::Preparation { .. } => {
|
||||
self.widgets.launch_game.set_label("Patch not available");
|
||||
self.widgets.launch_game.set_sensitive(false);
|
||||
|
||||
self.widgets.launch_game.set_tooltip_text(Some("Patch is outdated or in preparation state, so unavailable for usage. Return back later to see its status"));
|
||||
|
||||
self.widgets.launch_game.remove_css_class("suggested-action");
|
||||
self.widgets.launch_game.add_css_class("destructive-action");
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue