Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Settings remain even without saving #1218

Closed
mdosch opened this issue Oct 30, 2019 · 1 comment
Closed

Settings remain even without saving #1218

mdosch opened this issue Oct 30, 2019 · 1 comment

Comments

@mdosch
Copy link
Contributor

mdosch commented Oct 30, 2019

Changed settings remain, even when they are not saved via /save and profanity gets restarted.

Expected Behavior

After /quit without /savethe changed settings should be reverted when restarting.

Current Behavior

  • My settings are e.g.
    • Theme in use solarized-dark
    • No name in status bar chat tabs
    • No resource, presence status, online status are shown in roster
    • Time format dd.mm.yyyy hh:mm:ss
  • /theme load boothj5
  • All above settings are changed
  • /theme load solarized-dark
  • Changes remain (the theme doesn't touch them)
  • /quit
  • Open profanity
  • Changes remain
    • Names in status bar chat tabs
    • Resource, presence status, online status are shown in roster
    • Time format changed to dd/mm/yyyy
diff profrc profrc-before-themeswitching 
19c19
< statusbar.show.name=true
---
> statusbar.show.name=false
32,34c32,34
< roster.resource=true
< roster.presence=true
< roster.status=true
---
> roster.resource=false
> roster.presence=false
> roster.status=false
47,52c47,52
< time.console=%H:%M:%S
< time.chat=%d/%m/%y %H:%M:%S
< time.muc=%d/%m/%y %H:%M:%S
< time.config=off
< time.private=%d/%m/%y %H:%M:%S
< time.xmlconsole=%H:%M:%S
---
> time.console=%d.%m.%y %H:%M:%S
> time.chat=%d.%m.%y %H:%M:%S
> time.muc=%d.%m.%y %H:%M:%S
> time.config=%d.%m.%y %H:%M:%S
> time.private=%d.%m.%y %H:%M:%S
> time.xmlconsole=%d.%m.%y %H:%M:%S
86,87d85
< 
< roster.resource.char=/

Environment

Version 0.7.1dev.master.725cf3e4
Debian bullseye (testing)

@jubalh
Copy link
Member

jubalh commented Oct 31, 2019

/save only saves the preferences.
But /theme loads and applies a theme. Themes can have colours and other look options, like what date to use etc.

So in my opinion theme vs preferences handling is borked. And I opened a issue quite a while ago to discuss how to improve it: #1077

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants