Fix window position/size saving

I've only tested this for the main window so far

Fixes #149
This commit is contained in:
Rasmus Karlsson
2017-12-17 17:09:50 +01:00
parent 02e5030475
commit f7318a26e3
3 changed files with 52 additions and 106 deletions
+2 -2
View File
@@ -22,7 +22,7 @@ WindowManager::WindowManager(ChannelManager &_channelManager, ColorScheme &_colo
void WindowManager::initMainWindow()
{
this->selectedWindow = this->mainWindow =
new widgets::Window(this->channelManager, this->colorScheme, true);
new widgets::Window("main", this->channelManager, this->colorScheme, true);
}
static const std::string &getSettingsPath()
@@ -68,7 +68,7 @@ widgets::Window &WindowManager::getSelectedWindow()
widgets::Window &WindowManager::createWindow()
{
auto *window = new widgets::Window(this->channelManager, this->colorScheme, false);
auto *window = new widgets::Window("external", this->channelManager, this->colorScheme, false);
window->loadDefaults();