Skip to content

Commit

Permalink
default media types off in Files as well
Browse files Browse the repository at this point in the history
  • Loading branch information
ddennedy committed Jan 11, 2025
1 parent 4c21da9 commit 0c33387
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/docks/filesdock.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024 Meltytech, LLC
* Copyright (c) 2024-2025 Meltytech, LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -496,8 +496,7 @@ class FilesProxyModel : public QSortFilterProxyModel
}

private:
QList<PlaylistModel::MediaType> m_mediaTypes {
PlaylistModel::Video, PlaylistModel::Audio, PlaylistModel::Image, PlaylistModel::Other};
QList<PlaylistModel::MediaType> m_mediaTypes;
};

FilesDock::FilesDock(QWidget *parent)
Expand Down Expand Up @@ -909,28 +908,24 @@ void FilesDock::setupActions()
action = new QAction(tr("Video"), this);
action->setToolTip(tr("Show or hide video files"));
action->setCheckable(true);
action->setChecked(true);
connect(action, &QAction::triggered, this, &FilesDock::onMediaTypeClicked);
Actions.add("filesFiltersVideo", action, this->windowTitle());

action = new QAction(tr("Audio"), this);
action->setToolTip(tr("Show or hide audio files"));
action->setCheckable(true);
action->setChecked(true);
connect(action, &QAction::triggered, this, &FilesDock::onMediaTypeClicked);
Actions.add("filesFiltersAudio", action, this->windowTitle());

action = new QAction(tr("Image"), this);
action->setToolTip(tr("Show or hide image files"));
action->setCheckable(true);
action->setChecked(true);
connect(action, &QAction::triggered, this, &FilesDock::onMediaTypeClicked);
Actions.add("filesFiltersImage", action, this->windowTitle());

action = new QAction(tr("Other"), this);
action->setToolTip(tr("Show or hide other kinds of files"));
action->setCheckable(true);
action->setChecked(true);
connect(action, &QAction::triggered, this, &FilesDock::onMediaTypeClicked);
Actions.add("filesFiltersOther", action, this->windowTitle());

Expand Down

0 comments on commit 0c33387

Please sign in to comment.