mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-17 15:31:20 +00:00
This seems to work. Though it could be better
This commit is contained in:
parent
e7f6a1010a
commit
fa9cc1333a
|
@ -527,7 +527,16 @@ void DolphinMainWindow::toggleSplitView()
|
|||
void DolphinMainWindow::toggleSplitStash()
|
||||
{
|
||||
DolphinTabPage* tabPage = m_tabWidget->currentTabPage();
|
||||
tabPage->setSplitViewEnabled(!tabPage->splitViewEnabled(), QUrl("stash:/"));
|
||||
QAction* stashSplit = actionCollection()->action(QStringLiteral("split_stash"));
|
||||
qDebug() << "StashSplitstate" << stashSplit->isChecked();
|
||||
//stashSplit->setEnabled(false);
|
||||
if (stashSplit->isChecked()) {
|
||||
tabPage->setSplitViewEnabled(false);
|
||||
tabPage->setSplitViewEnabled(true, QUrl("stash:/"));
|
||||
stashSplit->setChecked(true);
|
||||
} else {
|
||||
tabPage->setSplitViewEnabled(false);
|
||||
}
|
||||
}
|
||||
|
||||
void DolphinMainWindow::reloadView()
|
||||
|
|
Loading…
Reference in a new issue