Hello Folks,
I am interested in your opinions. Maybe I simplify this topic to much and miss something.

A fresh installed and not configured BIT will ask if you want to restore an existing configuration (from a backup somewhere else). The dialog [1] [2] to select backup folder containing the config that should be restored is the topic here.

The dialog shows a directory tree to encourage the user to select the folder containing the config file.
I wonder if this dir tree widget is even useful in this context.

The dialog runs an extra thread in background search the file system for config files. That thread updates the related tree entries, so that the QLabel below that tree widget can display information of profiles found [1] or if nothing was found [2].

So why not throw away that tree widget and just present the search result of the thread running in the background? The user just need to wait some seconds in the beginning until the search for config files is finished.
Maybe add an extra button with a DirSelectDialog behind.

It would simplify the code. It would remove the threading logic and tree-model-filterproxy-logic of the tree widget.

Any suggestions and thoughts about it?

Regards,
Christian

[1] -- <https://translate.codeberg.org/media/screenshots/bit_dlg_import_config_found.png> [2] -- <https://translate.codeberg.org/media/screenshots/bit_dlg_import_config.png>
_______________________________________________
Bit-dev mailing list -- bit-dev@python.org
To unsubscribe send an email to bit-dev-le...@python.org
https://mail.python.org/mailman3//lists/bit-dev.python.org
Member address: arch...@mail-archive.com

Reply via email to