mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-05-19 13:58:37 -04:00
Fix hibernation behaviour not persisting
This commit is contained in:
@@ -21,7 +21,7 @@ public enum HibernateBehaviour implements PrefsChoiceValue {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isSelectable() {
|
||||
public boolean isAvailable() {
|
||||
var handler = DataStorageUserHandler.getInstance();
|
||||
return handler != null && handler.getActiveUser() != null;
|
||||
}
|
||||
|
||||
@@ -40,7 +40,7 @@ public class SystemCategory extends AppPrefsCategory {
|
||||
.pref(prefs.hibernateBehaviour)
|
||||
.addComp(ChoiceComp.ofTranslatable(
|
||||
prefs.hibernateBehaviour,
|
||||
PrefsChoiceValue.getSupported(HibernateBehaviour.class),
|
||||
PrefsChoiceValue.getSupported(HibernateBehaviour.class).stream().filter(b -> b.isAvailable()).toList(),
|
||||
true)
|
||||
.maxWidth(getCompWidth()))
|
||||
.pref(prefs.localShellDialect)
|
||||
|
||||
Reference in New Issue
Block a user