diff options
author | George Hazan <ghazan@miranda.im> | 2022-10-31 12:04:20 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2022-10-31 12:04:20 +0300 |
commit | e295c14b076423b3cb683a7835f169af293e4f2d (patch) | |
tree | a013f7a52c816378932aad45e5b24c37ab78dd4a | |
parent | 6fc8beb2129b3209c7fcd464ef812b765429c7fa (diff) |
disk write optimization :)
-rw-r--r-- | plugins/DbEditorPP/src/main_window.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/DbEditorPP/src/main_window.cpp b/plugins/DbEditorPP/src/main_window.cpp index 20a066e0ed..6d15bad4dd 100644 --- a/plugins/DbEditorPP/src/main_window.cpp +++ b/plugins/DbEditorPP/src/main_window.cpp @@ -286,9 +286,10 @@ void CMainDlg::OnDestroy() }
}
- g_plugin.setByte("HexMode", (byte)g_Hex);
- g_plugin.setByte("SortMode", (byte)g_Order);
- g_plugin.setByte("DontAllowInLineEdit", (byte)!g_Inline);
+ g_plugin.setByte("HexMode", (uint8_t)g_Hex);
+ g_plugin.setByte("SortMode", (uint8_t)g_Order);
+ g_plugin.setByte("DontAllowInLineEdit", (uint8_t)!g_Inline);
+ g_plugin.setWord("Splitter", (uint16_t)m_splitterPos);
WINDOWPLACEMENT wp;
wp.length = sizeof(WINDOWPLACEMENT);
@@ -367,7 +368,6 @@ void CMainDlg::onChange_Splitter(CSplitter *) if (m_splitterPos > iMaxPanelWidth)
m_splitterPos = iMaxPanelWidth;
- g_plugin.setWord("Splitter", (uint16_t)m_splitterPos);
PostMessage(m_hwnd, WM_SIZE, 0, 0);
}
|