Commit 95c0772a authored by jan.koester's avatar jan.koester
Browse files

bugfixes

parent 86454c20
Loading
Loading
Loading
Loading
+7 −0
Changes for debian/changelog: 7 added lines, 0 removed lines.
Original line number Diff line number Diff line
blogi (20260418+2) unstable; urgency=medium

  * Fix file browser TreeView to only show contents of opened folder
  * Make rootIndex a NOTIFY property so it updates on folder change

 -- Jan Koester <jan.koester@tuxist.de>  Sat, 18 Apr 2026 13:00:00 +0200

blogi (20260418+1) unstable; urgency=medium

  * Add Git tab with commit, sync and branch display
+1 −0
Changes for editor/gitfilesystemmodel.cpp: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -10,6 +10,7 @@ GitFileSystemModel::GitFileSystemModel(QObject *parent)
    connect(this, &QFileSystemModel::directoryLoaded, this, &GitFileSystemModel::onDirectoryLoaded);
    connect(this, &QFileSystemModel::rootPathChanged, this, [this](const QString &path){
        updateGitStatus(path);
        emit rootIndexChanged();
    });

    _refreshTimer.setInterval(5000);
+4 −1
Changes for editor/gitfilesystemmodel.h: 4 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -9,7 +9,7 @@

class GitFileSystemModel : public QFileSystemModel {
    Q_OBJECT
    Q_PROPERTY(QVariant rootIndex READ getRootIndex CONSTANT)
    Q_PROPERTY(QVariant rootIndex READ getRootIndex NOTIFY rootIndexChanged)
public:
    enum ExtraRoles {
        GitStatusRole = Qt::UserRole + 100,
@@ -30,6 +30,9 @@ public:

    QString findGitRepo(const QString &path) const;

signals:
    void rootIndexChanged();

protected:
    bool event(QEvent *event) override;