Bluegrams / Vividl

Modern Windows GUI for youtube-dl/ yt-dlp
https://vividl.sourceforge.io
BSD 3-Clause "New" or "Revised" License
692 stars 54 forks source link

Application Settings Not Persisting #92

Closed hl2guide closed 1 year ago

hl2guide commented 1 year ago

Application settings don't persist between application launches.

e.g. set the app theme to dark, close off the app, start again, the theme is white.

Praeses0 commented 1 year ago

I'm facing the same issue as well. None of the settings persist.

I'm using v0.7.1 on Windows

alxnull commented 1 year ago

Hey, thanks for reporting this. Could you share which variant of Vividl you're using, i.e. with installer, portable version or via chocolatey? Thanks!

Praeses0 commented 1 year ago

I tried both with the installer and via chocolatey

alxnull commented 1 year ago

Ok, currently I'm unable to reproduce this issue on my side. Usually, the settings for these variants should be preserved to the AppData folder. To check if that's maybe not happening, could you go to %APPDATA%/Bluegrams, then look for a folder starting with Vividl.exe and check if that folder contains a folder 0.7.1.0 with a user.config file. If that's the case, please check whether that file is not empty. Thanks!

hl2guide commented 1 year ago

@alxnull

For me I have two configs in both Local and Roaming folders.

C:\Users\Dean\AppData\Local\Bluegrams\Vividl.exe_Url_rz0pmv2lcv045rn4xnj5fqo5wqolmo43\0.7.1.0
C:\Users\Dean\AppData\Roaming\Bluegrams\Vividl.exe_Url_rz0pmv2lcv045rn4xnj5fqo5wqolmo43\0.7.1.0

The user.config file contains:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
    <configSections>
        <sectionGroup name="userSettings">
            <section name="Bluegrams.Application.UpdateCheckerBase" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
        </sectionGroup>
    </configSections>
    <userSettings>
        <Bluegrams.Application.UpdateCheckerBase>
            <setting name="SkipVersion" serializeAs="String">
                <value>False</value>
            </setting>
        </Bluegrams.Application.UpdateCheckerBase>
    </userSettings>
</configuration>
as-muncher commented 1 year ago

I found that some of my settings had to be set again after I upgraded from 0.7 to 0.7.1.

hl2guide commented 1 year ago

Out of the blue (no changes) it just started saving settings for me.

Don't know why. 😕

fourteen-1 commented 1 year ago

Looks like I'm facing the same issue. No settings are saved on exit. The app just "resets" to default (putting reset in quotes because I think a crash is happening on app exit which is preventing it from saving the changes). I have tried it with both .msi and portable zip and the bug exists in both versions.

vividlNOSETTINGSSAVEBUG (4)

alxnull commented 1 year ago

Thank you all for adding details on this! I identified an issue that prevents settings from being correctly saved when closing the application via File -> Exit (or Alt+F4) and will fix this. They should be saved correctly however when closing via "X".

fourteen-1 commented 1 year ago

thanks for providing with the closing via "X" alternative. It's saving settings now, however, the "Directly Download Videos" feature in Advanced settings does not remain toggled on after a restart still.

[Additional (& off-topic-ish) info] I'm not sure what the "Directly Download Videos" feature does since I cant get it to stay enabled. But I am trying to have the app set in a way where I can "Ctrl+V" the video URL into the app and have the app start download (without the additional need to wait until the video info loads in and having to press the download button). Is what I am describing done by this feature? If not I would like to propose a feature request for this functionality.

alxnull commented 1 year ago

@fourteen-1 re the "Directly Download Videos" feature: This is related to the automation feature which allows you to directly fetch & download any video urls copied to your clipboard without explicitly pasting them to the app. This feature can be activated via "Automate -> Auto-import URLs from Clipboard" in the main menu.

If this is not the feature you wanted, please open a feature request in a new issue.