mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
fix(ui): do not save splitter state in multiple windows mode
In multiple windows mode there are no two widgets that are separated by the splitter, there is just one widget. This changes the splitter state without the users intention.
This commit is contained in:
parent
65b1463933
commit
7e5387cad2
|
@ -2000,7 +2000,9 @@ void Widget::saveWindowGeometry()
|
|||
|
||||
void Widget::saveSplitterGeometry()
|
||||
{
|
||||
Settings::getInstance().setSplitterState(ui->mainSplitter->saveState());
|
||||
if (!Settings::getInstance().getSeparateWindow()) {
|
||||
Settings::getInstance().setSplitterState(ui->mainSplitter->saveState());
|
||||
}
|
||||
}
|
||||
|
||||
void Widget::onSplitterMoved(int pos, int index)
|
||||
|
|
Loading…
Reference in New Issue
Block a user