Skip to content

Commit

Permalink
Various fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
crschnick committed Nov 22, 2024
1 parent 372dd15 commit 7f85600
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 23 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ dependencies {
exclude group: 'org.apache.commons', module: 'commons-lang3'
}
api 'org.apache.commons:commons-lang3:3.17.0'
api 'io.sentry:sentry:7.17.0'
api 'io.sentry:sentry:7.18.0'
api 'commons-io:commons-io:2.18.0'
api group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: "2.18.1"
api group: 'com.fasterxml.jackson.datatype', name: 'jackson-datatype-jsr310', version: "2.18.1"
Expand Down
10 changes: 2 additions & 8 deletions app/src/main/java/io/xpipe/app/comp/store/StoreEntryComp.java
Original file line number Diff line number Diff line change
Expand Up @@ -386,15 +386,9 @@ protected ContextMenu createContextMenu() {
del.disableProperty()
.bind(Bindings.createBooleanBinding(
() -> {
return !getWrapper().getDeletable().get()
&& AppPrefs.get().developerMode().getValue()
&& !AppPrefs.get()
.developerDisableGuiRestrictions()
.get();
return !getWrapper().getDeletable().get();
},
getWrapper().getDeletable(),
AppPrefs.get().developerMode(),
AppPrefs.get().developerDisableGuiRestrictions()));
getWrapper().getDeletable()));
del.setOnAction(event -> getWrapper().delete());
contextMenu.getItems().add(del);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,7 @@ public synchronized void update() {
iconFile.setValue(entry.getEffectiveIconFile());

busy.setValue(entry.getBusyCounter().get() != 0);
deletable.setValue(entry.getConfiguration().isDeletable()
|| (AppPrefs.get().developerMode().getValue()
&& AppPrefs.get().developerDisableGuiRestrictions().getValue()));
deletable.setValue(entry.getConfiguration().isDeletable());
sessionActive.setValue(entry.getStore() instanceof SingletonSessionStore<?> ss
&& entry.getStore() instanceof ShellStore
&& ss.isSessionRunning());
Expand Down
6 changes: 0 additions & 6 deletions app/src/main/java/io/xpipe/app/prefs/AppPrefs.java
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,6 @@ public class AppPrefs {
mapLocal(new SimpleBooleanProperty(false), "developerMode", Boolean.class, true);
final BooleanProperty developerDisableUpdateVersionCheck =
mapLocal(new SimpleBooleanProperty(false), "developerDisableUpdateVersionCheck", Boolean.class, false);
final BooleanProperty developerDisableGuiRestrictions =
mapLocal(new SimpleBooleanProperty(false), "developerDisableGuiRestrictions", Boolean.class, false);
final BooleanProperty developerForceSshTty =
mapLocal(new SimpleBooleanProperty(false), "developerForceSshTty", Boolean.class, false);

Expand Down Expand Up @@ -478,10 +476,6 @@ public ObservableBooleanValue developerDisableUpdateVersionCheck() {
return developerDisableUpdateVersionCheck;
}

public ObservableBooleanValue developerDisableGuiRestrictions() {
return developerDisableGuiRestrictions;
}

public ObservableBooleanValue developerForceSshTty() {
return developerForceSshTty;
}
Expand Down
2 changes: 0 additions & 2 deletions app/src/main/java/io/xpipe/app/prefs/DeveloperCategory.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,6 @@ protected Comp<?> create() {
.addToggle(prefs.developerDisableUpdateVersionCheck)
.nameAndDescription("developerForceSshTty")
.addToggle(prefs.developerForceSshTty)
.nameAndDescription("developerDisableGuiRestrictions")
.addToggle(prefs.developerDisableGuiRestrictions)
.nameAndDescription("shellCommandTest")
.addComp(runLocalCommand))
.buildComp();
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/io/xpipe/app/storage/DataStorage.java
Original file line number Diff line number Diff line change
Expand Up @@ -974,6 +974,6 @@ public DataStoreEntry getStoreEntry(UUID id) {
}

public DataStoreEntry local() {
return getStoreEntryIfPresent(LOCAL_ID).orElseThrow(() -> new IllegalStateException("Missing local machine connection"));
return getStoreEntryIfPresent(LOCAL_ID).orElseThrow(() -> new IllegalStateException("Missing local machine connection, restart is required to fix this"));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ public void load() {
addStoreEntryIfNotPresent(entry1);
});
});
// Update validaties from synthetic parent I changes
// Update validaties from synthetic parent changes
refreshEntries();

if (!hasFixedLocal) {
Expand Down
2 changes: 1 addition & 1 deletion dist/licenses/sentry.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name=Sentry Java
version=7.17.0
version=7.18.0
license=MIT License
link=https://github.com/getsentry/sentry-java

0 comments on commit 7f85600

Please sign in to comment.