Shell display fixes

This commit is contained in:
crschnick 2024-11-11 13:33:59 +00:00
parent 2d356e6f8a
commit 7ad93bb2a6
2 changed files with 3 additions and 2 deletions

View file

@ -1,6 +1,7 @@
package io.xpipe.app.comp.store;
import io.xpipe.app.ext.ActionProvider;
import io.xpipe.app.ext.ShellStore;
import io.xpipe.app.issue.ErrorEvent;
import io.xpipe.app.prefs.AppPrefs;
import io.xpipe.app.storage.DataColor;
@ -157,7 +158,7 @@ public class StoreEntryWrapper {
busy.setValue(entry.getBusyCounter().get() != 0);
deletable.setValue(entry.getConfiguration().isDeletable()
|| AppPrefs.get().developerDisableGuiRestrictions().getValue());
sessionActive.setValue(entry.getStore() instanceof SingletonSessionStore<?> ss && ss.isSessionRunning());
sessionActive.setValue(entry.getStore() instanceof SingletonSessionStore<?> ss && entry.getStore() instanceof ShellStore && ss.isSessionRunning());
category.setValue(StoreViewState.get()
.getCategoryWrapper(DataStorage.get()

View file

@ -90,7 +90,7 @@ public class ShellStoreFormat {
if (state != null && state.isEmpty()) {
state = null;
}
return DataStoreFormatter.join(lic, state, name);
return DataStoreFormatter.join(lic, name, state);
}
public static String formattedOsName(String osName) {