mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-04-04 12:52:06 -04:00
display: Fix output config on delete & popup height
This commit is contained in:
@@ -231,13 +231,16 @@ Singleton {
|
||||
const compositor = CompositorService.compositor;
|
||||
const profilesDir = getProfilesDir();
|
||||
const profileFile = profilesDir + "/" + profileId + getProfileExtension();
|
||||
const isActive = SettingsData.getActiveDisplayProfile(compositor) === profileId;
|
||||
|
||||
profilesLoading = true;
|
||||
Proc.runCommand("delete-profile", ["rm", "-f", profileFile], (output, exitCode) => {
|
||||
profilesLoading = false;
|
||||
SettingsData.removeDisplayProfile(compositor, profileId);
|
||||
if (SettingsData.getActiveDisplayProfile(compositor) === profileId)
|
||||
if (isActive) {
|
||||
SettingsData.setActiveDisplayProfile(compositor, "");
|
||||
backendWriteOutputsConfig(allOutputs);
|
||||
}
|
||||
const updated = JSON.parse(JSON.stringify(validatedProfiles));
|
||||
delete updated[profileId];
|
||||
validatedProfiles = updated;
|
||||
|
||||
Reference in New Issue
Block a user