Add option to save window size and position (#154)

This commit is contained in:
WarmUpTill
2021-04-03 11:55:42 +02:00
committed by GitHub
parent dfccc4b16d
commit 73ce88e2f0
7 changed files with 108 additions and 42 deletions

View File

@@ -62,6 +62,7 @@ public:
void setupVideoTab();
void setupNetworkTab();
void setTabOrder();
void restoreWindowGeo();
static bool DisplayMessage(QString msg, bool question = false);
static void AskBackup(obs_data_t *obj);
@@ -150,6 +151,7 @@ public slots:
void on_sceneSequenceSwitches_itemDoubleClicked(QListWidgetItem *item);
void on_verboseLogging_stateChanged(int state);
void on_saveWindowGeo_stateChanged(int state);
void on_uiHintsDisable_stateChanged(int state);
void on_exportSettings_clicked();

View File

@@ -166,6 +166,10 @@ struct SwitcherData {
obs_hotkey_id stopHotkey = 0;
obs_hotkey_id toggleHotkey = 0;
bool saveWindowGeo = false;
QPoint windowPos = {};
QSize windowSize = {};
bool versionChanged(obs_data_t *obj, std::string currentVersion);
void Thread();