BetterUntis icon indicating copy to clipboard operation
BetterUntis copied to clipboard

[Bug Report] Deleting Profiles

Open Domi04151309 opened this issue 4 years ago • 3 comments

Description

Deleting a profile does not delete the preferences associated with the profile, resulting in a new profile adopting the settings of the old profile.

Domi04151309 avatar Oct 06 '20 14:10 Domi04151309

I see... SQLite internally uses rowid when a column is specified as PRIMARY KEY, which is the case for the profile id. However, these integers get reused, so it'd also be possible to define the column as AUTOINCREMENT to prevent this.

SapuSeven avatar Oct 06 '20 15:10 SapuSeven

But since the preferences for each profile are defined in separate files it would also be possible to just delete that specific file when the profile gets deleted.

Domi04151309 avatar Oct 06 '20 18:10 Domi04151309

Hang on... Profile preferences should already be deleted (see 7e413b3ec564d3bd272e3844f6ceef38c7ae12f7). Not sure why it's not working.

SapuSeven avatar Oct 07 '20 16:10 SapuSeven

This will be fixed with the Material 3 Update (#290).

SapuSeven avatar Nov 27 '22 02:11 SapuSeven